Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

<Button> (inherits from <Frame>, creates a Button) responds to clicks.

<Button text="" registerForClicks="" motionScriptsWhileDisabled="">
	<NormalTexture />
	<PushedTexture />
	<DisabledTexture />
	<HighlightTexture />
	<NormalColor />
	<HighlightColor />
	<DisabledColor />
	<ButtonText />
	<PushedTextOffset />
	<NormalFont style="" />
	<HighlightFont style="" />
	<DisabledFont style="" />
</Button>

Attributes[]

text (xs:string?Optional. Could be nil.) - Displays a label.
registerForClicks (xs:string?Optional. Could be nil.) - Controls which mouse buttons will trigger OnClick.
motionScriptsWhileDisabled (xs:boolean?Optional. Could be nil.) - Enables OnEnter and OnLeave while disabled.

Child elements[]

<NormalTexture>, <PushedTexture>, <DisabledTexture>, and <HighlightTexture> appear by state; inherit <Texture>.

<NormalColor>, <HighlightColor> and <DisabledColor>, colors the label by state; inherit <Color>.

<ButtonText> controls the label; inherits <FontString>.

<PushedTextOffset> moves the label when pushed; inherits <Dimension>.

<NormalFont>, <HighlightFont>, and <DisabledFont> styles the label by state.

style (xs:string)

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>

Close-button

Patch changes[]

References[]

 
  1. ^ 2009-12-08, UI.xsd, version 3.3.0.10958, near line 490, archived at Townlong-Yak
  2. ^ 2009-09-25, UI.xsd, version 3.2.2.10505, near line 483, archived at Townlong-Yak
  3. ^ 2006-06-20, UI.xsd, version 1.11.0.5428, near line 411, archived at Townlong-Yak
  4. ^ 2004-12-06, UI.xsd, version 1.1.2.4115, near line 366, archived at Townlong-Yak
Advertisement