WoW:XML/AbsValue

From AddOn Studio
< XML
Revision as of 04:49, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page XML/AbsValue to XML/AbsValue without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

XML UI ← XML types < AbsValue

AbsValue is a type used for defining a single value relate to relating to size or position in the the UI coordinate system. See AbsDimension and Dimension for value pair use types. AbsValue is used for properties such as FontHeight and TileSize.

Inheritance

Inherited by: none, Inherits: none, Defined in: Value

Elements

none

Attributes

  • val (int) - defines a unit based value

Summary

AbsValue facilitates the 'Layout' mechanism in the WoW UI. See the AbsDimension and Dimension for numerical value pairs use types. AbsValue is the 'unit based' property version in Value, where <RelValue> is the 'scalar' value property version.

Example

<Frame name="MyFrame">
  <Size x="200" y="200"/>
  <Layers>
    <Layer>
      <FontString text="Bob" inherits="MyFont">
        <Size x="100" y="100"/>
        <FontHeight>
          <AbsValue val="12"/>
        </FontHeight>
        <Anchors>
          <Anchor point="TOP"/>
        </Anchors>
      </FontString>
    </Layer>
  </Layers>
</Frame>

This example demonstrates use of FontHeight using Abs values.

Details