For XML, attributes are 'inline properties' of an 'element', like so: <element attribute="value"/>. Each 'element' can also contain 'child elements', grouped inside the elements tag as children, like so: <element><element attribute="value"/></element>. An element's is defined by both the attributes, and by the 'child elements' of that element.
The intent for this reference is to document actual complex properties that are not regular attributes, which make up the definition of a major XML Ui elements like widgets. These include common properties like <Size> or <Anchor>. This page is broken down into a single major section of common complex properties that share common types and definitions among major XML elements.
Type key for attributes
- string - String, just some text
- int - Integer, number (0,1,2,3,4,5...)
- float - Single, number with point (0.3 or 1.65 etc)
- bool - Boolean, one of '0', '1', 'true', 'false' to indicate enable or disable, or on or off, etc...
- enum - List, an enumeration, or one of a set of predefined values
- [Element] - Element Type, name of element
(Dimension) - Defines a size of an element. Normally this is done by putting "AbsDimension" tag inside with "x" and "y" attributes, but sometimes this is done by just giving "x" and "y" attributes to "Size" tag itself. Last one is probably old way of defining and left for a backward compatibility.
A list of Anchors that defines position of element relative to its parent position.
A list of AnimationGroups that define arbitrary animations for a target element.
(LayoutFrame) - Adds a region used for automatically dragging a frame.
Defines how big or small this frame can possibly be.
- minResize (Dimension) - lower bounds of a frames size
- maxResize (Dimension) - upper bounds of a frames size
(Backdrop) - Provides a background for a frame.
(Inset) - Alters the user input hit box for a frame.
This is a place where actually defined what will be drawn on screen. If this tag omitted default representation is taken (this needs to be tested). Only 'Layer' elements can be inside this tag, each have 'level' property to define the order they will be drawn. Only fontstring and texture elements are allowed inside Layer element.
Inside this tag all child elements are located. So if you want button inside a frame you need put it inside this tag of frame.
This tag only accepts Category:Widget event handlers.
Still for some elements there is extra tags where elements can be placed. This depends completely on element type
Determines how much of the specified texture is to be shown.
(Color) - generally represents a font text, foreground, or fill color
(Gradient) - defines gradation of color blended with Color or texture File. currenly is only a property of Texture.
(Shadow) - Puts a shadow behind an element.
Define the texture to use when a check button is checked.
Define the font to use when a button is disabled.
Define the texture to use when a button is disabled.
Text moves when clicked (and held), this defines how far it moves. Text moves back to its previous location when the mouse button is released.
Change the texture to this when clicked (and held). The texture changes back to its texture when the mouse button is released.