WoW:XML/Inset

From AddOn Studio
< XML
Revision as of 20:43, 26 September 2006 by WoWWiki>Cogwheel
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

HitRectInsets

Elements: AbsInset, RelInset

Attributes: left, right, top, bottom

Specifies the rectangle to be used for mouse interaction with the frame. E.g. a 100x100 frame with HitRectInsets of 2 for each attribute will only respond to mouse events within a 96x96 square centered within the frame.

Example

From FrameXML\OptionsFrameTemplates.xml:

<CheckButton name="OptionsCheckButtonTemplate" inherits="UICheckButtonTemplate" virtual="true">
	<HitRectInsets>
		<AbsInset left="0" right="-100" top="0" bottom="0"/>
	</HitRectInsets>
</CheckButton>

This allows you to click the checkbox up to 100 pixels (scaled) to the right of the box itself (where the label would be).