WoW:XML/RelValue

From AddOn Studio
< XML
Jump to navigation Jump to search

XML UI ← XML types < RelValue

Important Note: there is no known use of this property or examples of it actually being used in a working way.

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

Inheritance[edit]

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

Elements[edit]

none

Attributes[edit]

  • val (float) - defines a scalar value

Summary[edit]

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

Example[edit]

Note: this is an example for documentation completeness purposes. RelValue has no known working use at this time.

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

This example demonstrates use of FontHeight using Rel values.

Details[edit]