XML/Button

From Wowpedia
< XML
Jump to: navigation, search

Inheritance

Derived from: Frame

Contained in: Frames, Ui

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>

Close-button.jpg