Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

XML/Frame/HitRectInsets

From WoW Classic Wiki

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