Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

XML/Inset

Last wiki revision 2022-01-21

<Inset> defines padding or overflow from a region's edges. <Inset left="" right="" bottom="" top="" /> <Inset> <AbsInset left="" right="" bottom="" top="" /> <RelInset left="" right="" bottom="" top="" /> <Inset>

  • left - (+) padding or (-) overflow from the left edge, scaling dependent.
  • right - (+) padding or (-) overflow from the right edge, scaling dependent.
  • bottom - (+) padding or (-) overflow from the bottom edge, scaling dependent.
  • top - (+) padding or (-) overflow from the top edge, scaling dependent.

<AbsInset> uses scaling-dependent coordinates; equivalent to attributes on the <Inset> tag itself.

<RelInset> multiplies coordinates by 1560 (16:9) or 1250 (4:3) before applying scaling.

  • This documentation differs from the official schema:
  • <Inset> accepts, similar to <AbsInset>, despite the schema requiring.
  • <RelInset> silently defaults each value to 0.0 despite the schema requiring all four attributes.
  • The ratio for <RelInset> is evident from in-game testing (see below), but the reason for it to be about 1560 or 1250 is unclear.
  • Changing the aspect ratio during gameplay has no effect, and returns 0.

<HitRectInsets> inherits from <Inset> when causing a tiny frame (white) to be interactive over a larger area (red):

From FrameXML\OptionsFrameTemplates.xml, to click a checkbox up to 100 pixels to the right of the box itself: <CheckButton name="OptionsCheckButtonTemplate" inherits="UICheckButtonTemplate" virtual="true"> <HitRectInsets> <AbsInset left="0" right="-100" top="0" bottom="0"/> </HitRectInsets> </CheckButton>

The following tags inherit <Insets>:

  • <HitRectInsets>, a child element of.
  • <TextInsets>, a child element of.

Source

https://warcraft.wiki.gg/wiki/XML/Inset · 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.