Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
RelDimension is a type used for defining values that relate to the UI coordinate system. See the RelValue and Value for value pair use types. The RelDimension type can be used for Size, Position and others, and can be found on LayoutFrame, Anchor, and others.
Inherited by: none, Inherits: none, Defined in: Dimension
- x (float) - defines a scalar value thats horizontally opposed
- y (float) - defines a scalar value thats vertically opposed
RelDimension facilitates the 'Layout' mechanism in the WoW UI. RelDimension is differnt from AbsDimension in that it works with a different UI screen coodinate system than AbsDimension does, both of which refer to the same sizes or postions on the same WoW UI screen. AbsDimension uses 'unit based' coodinates, like units -200 through 200 where a value refers to a postion some where in that range. RelDimension uses what can be refered to as 'scalar' coordinates, where there are no 'unit based' coordinates, and values are 'scaled' based on a ratio like 0.0 through 1.0.
<Frame name="MyFrame"> <Size> <RelDimension x="0.5" y="0.5"/> </Size> </Frame>
This example demonstrates use of Dimension with Size and using Rel values.