v0.13.8

Button

widget type42 methodsavailable in: camelot

CreateFrame("Button", …) makes one. It has every method of Frame, plus 42 of its own.

Inherits from

  1. Button · 42
  2. Frame · 126
  3. Region · 16
  4. ScriptRegion · 55
  5. ScriptRegionResizing · 13
  6. AnimatableObject · 3
  7. Object · 5
  8. FrameScriptObject · 21

The number is each type's own documented methods. A Button has all of them.

Methods

In the emulator: 35 implemented, 7 guessed.

methodwhat it doesstatus
ClearDisabledTextureRemoves the button's disabled texture. · by wowlua
()
implemented
ClearHighlightTextureRemoves the button's highlight texture. · by wowlua
()
implemented
ClearNormalTextureRemoves the button's normal texture. · by wowlua
()
implemented
ClearPushedTextureRemoves the button's pushed texture. · by wowlua
()
implemented
ClickPerforms a virtual mouse click on the button. · warcraft.wiki.gg ↗
(button: string, isDown: boolean)
implemented
DisableDisables the button, so it no longer responds to clicks. · by wowlua
()
implemented
EnableEnables the button, so it responds to clicks. · by wowlua
()
implemented
GetButtonStateReturns the button's state: NORMAL, PUSHED or DISABLED. · by wowlua
(): ButtonStateToken
implemented
GetDisabledFontObjectReturns the font the button's text uses while disabled. · by wowlua
(): Font
guessed
GetDisabledTextureReturns the texture the button shows while disabled. · by wowlua
(): Texture
implemented
GetFontStringReturns the font string that shows the button's text. · by wowlua
(): FontString
implemented
GetHighlightFontObjectReturns the font the button's text uses while highlighted. · by wowlua
(): Font
guessed
GetHighlightTextureReturns the highlight texture for the button. · warcraft.wiki.gg ↗
(): Texture
implemented
GetMotionScriptsWhileDisabledWhether the button runs OnEnter and OnLeave while disabled. · by wowlua
(): boolean
guessed
GetNormalFontObjectReturns the font object for the button's normal state. · warcraft.wiki.gg ↗
(): Font
guessed
GetNormalTextureReturns the texture the button shows in its normal state. · by wowlua
(): Texture
implemented
GetPushedTextOffsetReturns how far the button's text moves while pushed, as x and y offsets. · by wowlua
(): (number, number)
guessed
GetPushedTextureReturns the texture the button shows while pushed. · by wowlua
(): Texture
implemented
GetTextReturns the text on the button. · warcraft.wiki.gg ↗
(): string
implemented
GetTextHeightReturns the height of the button's text. · by wowlua
(): number
guessed
GetTextWidthReturns the width of the button's text. · by wowlua
(): number
implemented
IsEnabledReturns true if the button is enabled. · warcraft.wiki.gg ↗
(): boolean
implemented
RegisterForClicksRegisters the button widget to receive OnClick script events. · warcraft.wiki.gg ↗
(buttons: ClickButton)
implemented
RegisterForMouseRegisters the button widget to receive OnMouse script events. · warcraft.wiki.gg ↗
(buttons: ClickButton)
guessed
SetButtonStateSets the button's state: NORMAL, PUSHED or DISABLED. · by wowlua
(buttonState: ButtonStateToken, lock: boolean)
implemented
SetDisabledAtlasSets the button's disabled texture from an atlas. · by wowlua
(atlas: string)
implemented
SetDisabledFontObjectSets the font the button's text uses while disabled. · by wowlua
(font: Font)
implemented
SetDisabledTextureSets the texture the button shows while disabled. · by wowlua
(asset: TextureAsset)
implemented
SetEnabledEnables or disables the button, allowing or preventing user interaction. · warcraft.wiki.gg ↗
(enabled: boolean)
implemented
SetFontStringSets the font string that shows the button's text. · by wowlua
(fontString: FontString)
implemented
SetFormattedTextSets the button text with format specifiers. · warcraft.wiki.gg ↗
(text: string)
implemented
SetHighlightAtlasSets the button's highlight texture from an atlas. · by wowlua
(atlas: string, blendMode: BlendMode?)
implemented
SetHighlightFontObjectSets the font the button's text uses while highlighted. · by wowlua
(font: Font)
implemented
SetHighlightTextureSets the texture the button shows while the mouse is over it. · by wowlua
(asset: TextureAsset, blendMode: BlendMode?)
implemented
SetMotionScriptsWhileDisabledSets whether the button runs OnEnter and OnLeave while disabled. · by wowlua
(motionScriptsWhileDisabled: boolean)
implemented
SetNormalAtlasSets the button's normal texture from an atlas. · by wowlua
(atlas: string)
implemented
SetNormalFontObjectSets the font object used for the button's normal state. · warcraft.wiki.gg ↗
(font: Font)
implemented
SetNormalTextureSets the normal texture for a button. · warcraft.wiki.gg ↗
(asset: TextureAsset)
implemented
SetPushedAtlasSets the button's pushed texture from an atlas. · by wowlua
(atlas: string)
implemented
SetPushedTextOffsetSets how far the button's text moves while pushed. · by wowlua
(offsetX: number, offsetY: number)
implemented
SetPushedTextureSets the texture the button shows while pushed. · by wowlua
(asset: TextureAsset)
implemented
SetTextSets the text of the button. · warcraft.wiki.gg ↗
(text: string)
implemented

sources

Methods and inheritance: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.