WoW:XML attributes: Difference between revisions

m
Move page script moved page XML attributes to WoW:XML attributes without leaving a redirect
mNo edit summary
m (Move page script moved page XML attributes to WoW:XML attributes without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 12: Line 12:
* int - Integer, number (0,1,2,3,4,5...)
* int - Integer, number (0,1,2,3,4,5...)
* float - Single, number with point (0.3 or 1.65 etc)
* float - Single, number with point (0.3 or 1.65 etc)
* boolean - or 'bool' is same as 'xs:boolean', is one of 'true' or 'false' to indicate enable or disable, or on or off, etc...
* bool - Boolean, one of '0', '1', 'true', 'false' to indicate enable or disable, or on or off, etc...
* enum - List, an enumeration, or one of a set of predefined values
* enum - List, an enumeration, or one of a set of predefined values
* [Element] - Element Type, name of element
* [Element] - Element Type, name of element
Line 30: Line 30:


=== autoFocus ===
=== autoFocus ===
(boolean) - Automatically place the cursor bar inside a text box and receive all of the keyboard's attention. Default is 'true'.
(bool) - Automatically place the cursor bar inside a text box and receive all of the keyboard's attention. Default is 'true'.


=== blinkSpeed ===
=== blinkSpeed ===
Line 39: Line 39:


=== checked ===
=== checked ===
(boolean) - If set to true - CheckButton is checked when loaded. Default is 'false'.
(bool) - If set to true - CheckButton is checked when loaded. Default is false


=== clampedToScreen ===
=== clampedToScreen ===
(boolean) - Prohibits element to go out of screen. Way applied unknown, probably just moved.
(bool) - Prohibits element to go out of screen. Way applied unknown, probably just moved.


=== countInvisibleLetters ===
=== countInvisibleLetters ===
(boolean) -  
(bool) -  


=== defaultvalue ===
=== defaultvalue ===
Line 54: Line 54:


=== enableKeyboard ===
=== enableKeyboard ===
(boolean) - Tell the frame to receive keyboard input.
(bool) - Tell the frame to receive keyboard input.


=== enableMouse ===
=== enableMouse ===
(boolean) - Tell the frame to receive mouse input.
(bool) - Tell the frame to receive mouse input.


=== [[EdgeFile|edgeFile]] ===
=== [[EdgeFile|edgeFile]] ===
Line 74: Line 74:


=== hidden ===
=== hidden ===
(boolean) - If true element is skipped in drawing resulting it not appearing on screen (interactions also skipped). Default is 'false'.
(bool) - If true element is skipped in drawing rseulting it not appearing on screen (interactions also skipped). Default false.


=== historyLines ===
=== historyLines ===
Line 83: Line 83:


=== ignoreArrows ===
=== ignoreArrows ===
(boolean) - Text fields will ignore directional arrows and move the character instead. (Holding <Alt> temporarily sets this to true). Default is 'false'.
(bool) - Text fields will ignore directional arrows and move the character instead. (Holding <Alt> temporarily sets this to true). Default false.


=== inherit ===
=== inherit ===
Line 95: Line 95:
=== insertmode ===
=== insertmode ===
Tells a MessageFrame where to put new content. Accepts "TOP" or "BOTTOM". Default "TOP"
Tells a MessageFrame where to put new content. Accepts "TOP" or "BOTTOM". Default "TOP"
=== intrinsic ===
(boolean) Marks a frame as an intrinsic type. Used on [[XML/Frame]]. Default is 'false'.
=== intrinsicOrder ===
([[XML types#SCRIPTINTRINSICORDERTYPE|SCRIPTINTRINSICORDERTYPE]]) - chooses the order that a script in an [[#intrinsic|intrinsic]] frame, will be run relative to any implementation scripts. Used by [[XML/Script]] handlers.


=== justifyH ===
=== justifyH ===
Line 112: Line 106:


=== multiLine ===
=== multiLine ===
(boolean) - Tells a text box to span multiple lines (<Enter> inserts a line break).
(bool) - Tells a text box to span multiple lines (<Enter> inserts a line break).


=== maxLines ===
=== maxLines ===
Line 130: Line 124:


=== movable ===
=== movable ===
(boolean) - (De)Activates the methods, :StartMoving() and :StopMovingOrSizing(). Default is 'false'.
(bool) - (De)Activates the methods, :StartMoving() and :StopMovingOrSizing(). Default false.


=== name ===
=== name ===
Line 152: Line 146:


=== password ===
=== password ===
(boolean) - Determines if text should be viewed using hidden 'password' format.
(bool) - Determines if text should be viewed using hidden 'password' format.


=== parent ===
=== parent ===
Line 158: Line 152:


=== protected ===
=== protected ===
(boolean) - Can be defined only in blizzard interface files (At least no one checked yet). If set to true some special api functions can be used. Any element inherited from protected ones can use this functions too. Protected functions/actions cannot be circumvented with this attribute.
(bool) - Can be defined only in blizzard interface files (At least no one checked yet). If set to true some special api functions can be used. Any element inherited from protected ones can use this functions too. Protected functions/actions cannot be circumvented with this attribute.


=== registerForClicks ===
=== registerForClicks ===
Line 170: Line 164:


=== resizable ===
=== resizable ===
(boolean) - If true element can be resized. Default is 'false'.
(bool) - If true element can be resized. Default false


=== reverse ===
=== reverse ===
Line 178: Line 172:
(float) - Sets the scale. Default is the parent's scale. Accepts values greater than and not equal to 0.
(float) - Sets the scale. Default is the parent's scale. Accepts values greater than and not equal to 0.


=== [[XML/LayoutFrame#Attributes|setAllPoints]] ===
=== [[XML/LayoutFrame#Attributes|setAllPoints]] (bool) ===
(boolean)
  <[[XML/Frame|Frame]] name="MyFrameTemplate" hidden="true" virtual="true"/>
  <[[XML/Frame|Frame]] name="MyFrameTemplate" hidden="true" virtual="true"/>
  <[https://wowwiki.fandom.com/wiki/XML/Frame Frame] name="MyFrame" inherts="MyFrameTemplate">
  <[https://wowwiki.fandom.com/wiki/XML/Frame Frame] name="MyFrame" inherts="MyFrameTemplate">
Line 217: Line 210:


=== virtual ===
=== virtual ===
(boolean) - If true element will not created, but used as template for other elements. Default is 'false'.
(bool) - If true element will not created, but used as template for other elements. Default false


== See also ==
== See also ==
Anonymous user