WoW:XML/Button
< XML
Jump to navigation
Jump to search
Inheritance
Derived from: Frame
Runtime object: UIOBJECT_Button
Elements
NormalTexture, PushedTexture, DisabledTexture, HighlightTexture, NormalText, HighlightText, DisabledText, PushedTextOffset
Attributes
- text
- The text displayed on the button.
Description
Notes: The various textures, once inherited or set to art of your choice, will automatically behave as expect. (highlight on mouseover, pushed while clicked, disabled when disabled) The same goes for the different texts.
Example
Included in Backdrop
<Button name="$parentButtonClose" inherits="OptionsButtonTemplate" text="Close"> <Anchors> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-12" y="16"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> autoInviteMainConfigFrame:Hide(); </OnClick> </Scripts> </Button>