Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

XML/Dimension

Last wiki revision 2021-11-07

<Dimension> defines a dimension (size, offset, etc.) as x and y, or with a child element to specify the coordinate system. <Dimension x="" y=""> <AbsDimension x="" y="" /> <RelDimension x="" y="" /> </Dimension>

  • x - Horizontal distance affected by UI scaling; (+) right and (-) left.
  • y - Vertical distance affected by UI scaling; (+) up and (-) down.

<AbsDimension> defines coordinates in scaling-dependent units (same as <Dimension>). <RelDimension> defines coordinates relative to the entire screen, where 0 and 1 are the edges.

  • x - Horizontal distance affected by UI scaling; (+) right and (-) left.
  • y - Vertical distance affected by UI scaling; (+) up and (-) down.
  • x - Ratio of screen width, from left to right edges.
  • y - Ratio of screen height, from bottom to top edges.

Creates a parent frame that fills one quarter of the screen, and a child frame that is set to 200x100 units and is 22 units from the top edge of its parent.

N.B.: <Anchor> also has its own x and y attributes, so this could be written in fewer lines without <Offset> and <AbsDimension>.

Source

https://warcraft.wiki.gg/wiki/XML/Dimension · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.