WoW:XML/UiInclude

< XML
Revision as of 04:49, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page XML/UiInclude to XML/UiInclude without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

XML UI ← XML elements < UiInclude

Include allows WoW UI XML files to be included in another UI XML file. The Include element can be used in a XML/Ui element.

InheritanceEdit

Inherited by: none, Inherits: none, Defined in: Ui

ElementsEdit

none

AttributesEdit

  • file (string) - relative path to the WoW UI XML file to include

SummaryEdit

Include elements include other WoW UI XML files in an XML file and allow them to be processed on load inline, at the point of the include statement.

ExampleEdit

<Ui xmlns="http://www.blizzard.com/wow/ui/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Include file="MyOtherFrame.xml"/>
  <Frame name="MyFrame" inherits="MyOtherFrameTemplate">
    <Size>
      <AbsDimension x="200" y="200"/>
    </Size>
  </Frame>
</Ui>

This example demonstrates using Include to include another XML file, in this case presumably containing a template used by a Frame in this XML file. The included XML will be processed before the template it contains is used by 'MyFrame'.

DetailsEdit