Fandom

WoWWiki

XML/Ui

< XML

104,642pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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>
  </Font>
  <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 definitions are only valid on pages of namespace "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.

Also on Fandom

Random Wiki