Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:XML/Inset
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{uixmltype}} [[XML/Inset|Inset]] alters the hit rectangle or 'hit rect' for user input. Defines a 4-way set of margins, positioning one area within another. See [[XML/Dimension|Dimension]] for numerical value pairs use type and [[XML/Value|Value]] for single value version. Inset is used for properties such as [[XML_properties#TextInsets|TextInsets]] and [[XML_properties#HitRectInsets|HitRectInsets]]. == Inheritance == Inherited by: none, Inherits: none, Defined in: [[XML/Backdrop|Backdrop]],[[XML/EditBox|EditBox]],[[XML/Frame|Frame]] == Elements == * [[XML/AbsInset|AbsInset]] * [[XML/RelInset|RelInset]] == Attributes == * left (int) - Default is '0'. * right (int) - Default is '0'. * top (int) - Default is '0'. * bottom (int) - Default is '0'. == Summary == [[XML/Inset|Inset]] 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. [[XML/Inset|Inset]] type changes the default 'hit rect' for its display element. Inset is used for properties like: <BackgroundInsets> to "push in" the background texture to put in line with the border or edge textures of the frame; <TextInsets> to define text margins; <HitRectInsets> to modify a frame's hit rectangle in relation to its normal size. === Example === <CheckButton name="MyCheckTemplate" inherits="UICheckButtonTemplate" virtual="true"> <HitRectInsets> <[[XML/AbsInset|AbsInset]] left="0" right="-100" top="0" bottom="0"/> </HitRectInsets> </CheckButton> <[[XML/Frame|Frame]] name="MyFrame"> <HitRectInsets> <RelInset left="0" right="-0.1" top="0" bottom="0"/> </HitRectInsets> <Layers> <[[XML/Layer|Layer]]> <[[XML/Texture|Texture]]> <Size x="100" y="100" /> <HitRectInsets> <[[XML/AbsInset|AbsInset]] left="0" right="-100" top="0" bottom="0"/> </HitRectInsets> <Color a="1" r="1" g="1" b="1" /> </Texture> <Texture> <Size x="100" y="100" /> <HitRectInsets left="0" right="-100" top="0" bottom="0" /> <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. The <CheckBotton> template allows you to click the checkbox up to 100 pixels (scaled) to the right of the box itself (where the label would be). == Details == == BackgroundInsets == You add the background file which is the dialog box background. You then add the edgeFile which will be the dialog box border texture (this will go around the border or "edge" of the frame). You will notice if you remove the background insets you will see the background texture on the outside of the edge texture. BackgroundInsets fixes this. [[Category:Interface customization]]
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Uixmltype
(
edit
)