Wikia

WoWWiki

XML types

Talk0
101,673pages on
this wiki
Revision as of 18:49, October 7, 2012 by Celess22 (Talk | contribs)

XML UI


Reference for the WoW UI XML types, those which are actual seperate types used in a variety of places. Below are both element types (marked with 'Element Type') and enumerations which can be used on attributes.

XML Types

  • nil - null or Lua nil, an empty value or type
  • bool - boolean, a binary value constrained to on and off, like 'true' or 'false'
  • int - integer or Lua number, a signed number constrained to whole values, like -1,0,1,2...1000...
  • float - floating point or Lua number, a signed number able to contain fractional values, like -1.2,-1,0.123,2000.1...
  • string - a special charecter based array containing text, like "bob"

Size and Offset

Dimension (Element Type)

  • AbsDimension - unit based coordinates
  • RelDimension - scalar coordinates
  • x (int) - a unit value thats horizontally opposed
  • y (int) - a unit value thats vertically opposed

AbsDimension (Element Type)

  • x (int) - a unit value thats horizontally opposed
  • y (int) - a unit value thats vertically opposed

RelDimension (Element Type)

  • x (float) - a scalar value thats horizontally opposed
  • y (float) - a scalar value thats vertically opposed

Value (Element Type)

AbsValue (Element Type)

  • val (int) - a unit value

RelValue (Element Type)

  • val (float) - a scalar value

Inset (Element Type)

AbsInset (Element Type)

  • left (int)
  • right (int)
  • top (int)
  • bottom (int)

RelInset (Element Type)

  • left (float)
  • right (float)
  • top (float)
  • bottom (float)

Layout

LayoutFrame

  • name (string) - defines the name of the element
  • parentKey (string) - name for a key in the parent element, which will reference this element at runtime.
  • parentArray (string) - name for an array in the parent, to reference this element at runtime.
  • inherits (string) - uses a virtual element as a template
  • virtual (bool) - marks the as a template, to be inherited from using inherits
  • setAllPoints (bool) - anchors the TOPLEFT, TOPRIGHT, BOTTOMLEFT and BOTTOMRIGHT points to the parent
  • hidden (bool) - makes the element hidden by default
  • Size (Dimension)
  • Anchors
  • Animations

Anchor (Element Type)

  • point (FRAMEPOINT)
  • relativeTo (string)
  • relativeKey (string) - uses a Lua name of reference to make relative to. alternate to 'relativeTo'.
  • relativePoint (FRAMEPOINT)
  • x (int)
  • y (int)
  • Offset (Dimension)

ResizeBounds (Element Type)

  • minResize (Dimension) - lower bounds of a frames size
  • maxResize (Dimension) - upper bounds of a frames size

FRAMEPOINT

  • TOPLEFT
  • TOPRIGHT
  • BOTTOMLEFT
  • BOTTOMRIGHT
  • TOP
  • BOTTOM
  • LEFT
  • RIGHT
  • CENTER

Appearance

Color (Element Type)

Defines a color.

  • r (float) - red
  • g (float) - green
  • b (float) - blue
  • a (float) - Default is '1.0'.

Gradient (Element Type)

Defines a color gradient.

ButtonStyle (Element Type)

  • style (string) - Name of a font or fontstring for text render.

ORIENTATION

  • HORIZONTAL
  • VERTICAL

JUSTIFYV

  • TOP
  • MIDDLE
  • BOTTOM

JUSTIFYH

  • LEFT
  • CENTER
  • RIGHT

OUTLINE

  • NONE
  • NORMAL
  • THICK

ALPHAMODE

Defines a way transparency applied.

  • DISABLE - no blend.
  • BLEND - (default) while background fades element gets stronger
  • ALPHAKEY - transparency depends on alpha channel of textures
  • ADD - background and element colors added resulting in bright colors
  • MOD - modulate

Display

Layer (Element Type)

  • level (DRAWLAYER) - Default is 'ARTWORK'.
  • textureSubLevel (int) - Additional sub-leveling of 'level'. Range of -8 .. 7. Default is '0'.
  • Texture ...
  • FonstString ...

DRAWLAYER

  • BACKGROUND
  • BORDER
  • ARTWORK - usual default.
  • OVERLAY
  • HIGHLIGHT

FRAMESTRATA

  • PARENT
  • BACKGROUND
  • LOW
  • MEDIUM
  • HIGH
  • DIALOG
  • FULLSCREEN
  • FULLSCREEN_DIALOG
  • TOOLTIP

Animation

AnimOrigin (Element Type)

  • point (FRAMEPOINT) - relative anchor for the offset.
  • Offset (Dimension) - static initial ofset for the animation origin.

ControlPoint (Element Type)

  • name (string)
  • offsetX (float)
  • offsetY (float)

ANIMLOOP

  • NONE
  • REPEAT
  • BOUNCE

ANIMSMOOTH

  • NONE
  • IN
  • OUT
  • IN_OUT
  • OUT_IN

ANIMCURVE

  • NONE
  • SMOOTH

Other Types

Ui

Attribute

Parked

The below is temporarity parked here while things are restructured, was from the XML Basics, where it didnt really belong

For complete description and properties of each element follow link below. Since there is no official blizzard documentation, and standards change with patches, it's hard to keep this list up to date and accurate.

  • NonWidgets
    • include - You specify another scheme to load here (ones not listed in ToC file)
    • script - Refers to a script file (skipped in ToC file) or contains lua script inside
    • font - Defines a font template (can be used only inside ui tag)
    • texture - Defines a texture template (can be used only inside ui tag)

Around Wikia's network

Random Wiki