WoW:XML/AbsInset: Difference between revisions
< WoW:XML
Jump to navigation
Jump to search
(Created page with "{{uixmltype}} < XML/Inset AbsInset is the 'unit based' integer value for XML/Inset which alters the hit rectangle or 'hit rect' for user input. == I...") |
m (Move page script moved page XML/AbsInset to WoW:XML/AbsInset without leaving a redirect) |
(No difference)
| |
Latest revision as of 04:49, 15 August 2023
← XML UI ← XML types < AbsInset
AbsInset is the 'unit based' integer value for Inset which alters the hit rectangle or 'hit rect' for user input.
Inheritance
Inherited by: none, Inherits: none, Defined in: Inset
Elements
none
Attributes
- left (int) - Default is '0'.
- right (int) - Default is '0'.
- top (int) - Default is '0'.
- bottom (int) - Default is '0'.
Summary
AbsInset alters the active hit area for positional input devices. Hit rects are used for determining which screen element belongs to an input event by having an associated screen rectangle.
Example
<Frame name="MyFrame"> <Layers> <Layer> <Texture> <Size x="100" y="100" /> <HitRectInsets> <AbsInset left="0" right="-100" top="0" bottom="0"/> </HitRectInsets> <Color a="1" r="1" g="1" b="1" /> </Texture> </Layer> </Layers> </Frame>
This example will show a frame with several textures, with altered 'hit rect' insets.