WoW:XML/Ui: Difference between revisions

From AddOn Studio
< XML
Jump to navigation Jump to search
(Created page with 'Elements: Include, Script, {LayoutFrame} Category:XML elements')
 
m (Move page script moved page XML/Ui to XML/Ui without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Elements: Include, Script, {[[XML/LayoutFrame|LayoutFrame]]}
{{uixml}}
 
The WoW UI XML [[XML/Ui|Ui]] element holds a list of all other elements. [[XML/Ui|Ui]] is the root element in a FrameXML .xml document, and is the fundimental element for containing all other elements. Ui is not inheritable, nor does it inherit any other element type. No other element can contain [[XML/Ui|Ui]].
 
== Inheritance ==
Inherited by: none, Inherits: none, Defined in: none (root element type)
 
== Elements ==
* [[Include]]
* [[Script]]
* {[[XML/Animation|Animation]]}
* {[[XML/AnimationGroup|AnimationGroup]]}
* {[[XML/Font|Font]]}
* {[[XML/LayoutFrame|LayoutFrame]]}
 
== Attributes ==
none
 
== Summary ==
 
=== Example ===
<[[XML/Ui|Ui]] xmlns="http://www.blizzard.com/wow/ui/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <[[Include]] file="MyFrameTemplates.xml" />
  <[[Script]] file="MyFrame.lua" />
  <[[XML/Font|Font]] name="SomeFont_Tiny" font="Fonts\FRIZQT__.TTF" virtual="true">
    <FontHeight>
      <AbsValue val="9"/>
    </FontHeight>
  </Font>
  <Texture name="MyAddon_TextureTemplate" file="sometexture" virtual="true">
    <Size x="100" y="100"/>
  </Texture>
  <Frame name="MyAddOn_FrameTemplate" parent="UIParent" virtual="true">
    <[[XML/Backdrop|Backdrop]] bgFile="Interface\DialogFrame\UI-DialogBox-Background"
          edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
      <BackgroundInsets>
        <AbsInset left="11" right="12" top="12" bottom="11"/>
      </BackgroundInsets>
      <TileSize>
        <AbsValue val="32"/>
      </TileSize>
      <EdgeSize>
        <AbsValue val="32"/>
      </EdgeSize>
    </Backdrop>
    <Layers>
      <Layer>
        <Texture inherits="MyAddon_TextureTemplate">
          <Anchors>
            <Anchor point="TOP"/>
          </Anchors>
        </Texture>
      </Layer>
    </Layers>
  </Frame>
  <[[XML/Frame|Frame]] name="MyAddon_MyFrame" inherits="MyAddOn_Template">
    <Size>
      <[[XML/AbsDimension|AbsDimension]] x="200" y="200" />
    </Size>
    <Anchors>
      <[[XML/Anchor|Anchor]] point="CENTER" />
    </Anchors>
  </Frame>
</Ui>
 
Example [[XML/Ui|Ui]] FrameXML file illustrating many common Ui elements.
[[Category:XML elements]]
[[Category:XML elements]]

Latest revision as of 04:49, 15 August 2023

XML UI


The WoW UI XML Ui element holds a list of all other elements. Ui is the root element in a FrameXML .xml document, and is the fundimental element for containing all other elements. Ui is not inheritable, nor does it inherit any other element type. No other element can contain Ui.

Inheritance[edit]

Inherited by: none, Inherits: none, Defined in: none (root element type)

Elements[edit]

Attributes[edit]

none

Summary[edit]

Example[edit]

<Ui xmlns="http://www.blizzard.com/wow/ui/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Include file="MyFrameTemplates.xml" />
  <Script file="MyFrame.lua" />
  <Font name="SomeFont_Tiny" font="Fonts\FRIZQT__.TTF" virtual="true">
    <FontHeight>
      <AbsValue val="9"/>
    </FontHeight>
  
  <Texture name="MyAddon_TextureTemplate" file="sometexture" virtual="true">
    <Size x="100" y="100"/>
  </Texture>
  <Frame name="MyAddOn_FrameTemplate" parent="UIParent" virtual="true">
    <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background"
          edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
      <BackgroundInsets>
        <AbsInset left="11" right="12" top="12" bottom="11"/>
      </BackgroundInsets>
      <TileSize>
        <AbsValue val="32"/>
      </TileSize>
      <EdgeSize>
        <AbsValue val="32"/>
      </EdgeSize>
    </Backdrop>
    <Layers>
      <Layer>
        <Texture inherits="MyAddon_TextureTemplate">
          <Anchors>
            <Anchor point="TOP"/>
          </Anchors>
        </Texture>
      </Layer>
    </Layers>
  </Frame>
  <Frame name="MyAddon_MyFrame" inherits="MyAddOn_Template">
    <Size>
      <AbsDimension x="200" y="200" />
    </Size>
    <Anchors>
      <Anchor point="CENTER" />
    </Anchors>
  </Frame>
</Ui>

Example Ui FrameXML file illustrating many common Ui elements.