WoW:XML/Inset: Difference between revisions

From AddOn Studio
< XML
Jump to navigation Jump to search
No edit summary
 
m (catfix)
Line 19: Line 19:
This allows you to click the checkbox up to 100 pixels (scaled) to the right of the box itself (where the label would be).
This allows you to click the checkbox up to 100 pixels (scaled) to the right of the box itself (where the label would be).


[[Category:Interface Customization]]
[[Category:Interface customization]]

Revision as of 18:40, 7 July 2008

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).