WoW:XML/Ui
< XML
Jump to navigation
Jump to search
← 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
Inherited by: none, Inherits: none, Defined in: none (root element type)
Elements
- Include
- Script
- {Animation}
- {AnimationGroup}
- {Font}
- {LayoutFrame}
Attributes
none
Summary
Example
<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.