Skip to content

SetEmpty

StormFX edited this page Dec 13, 2022 · 1 revision

Contents

The SetEmpty method of Masque's API notifies Masque of a button's empty status.

Example

-- Establish a reference to Masque.
local Masque = LibStub("Masque", true)

-- Set Button1 as empty.
Masque:SetEmpty(Button1, true)

-- Set Button1 as active.
Masque:SetEmpty(Button1)
Notes

  • By default, Masque hooks into the Icon region's Hide and Show methods to detect when a button is empty or active. Therefore, this method is only necessary if an author is using an alternate method of handling these states.

Signature

{Masque}:SetEmpty({Button} [, IsEmpty])

Parameters

Parameter Type Required Description
Button table Yes The button object whose empty status is to be set.
IsEmpty boolean No Whether the button is empty.

8.5.2 80200

  • Method added.

Wiki
  • Home

Project
  • Contributors
  • History

Reference
  ⚬ Masque API
     • API_VERSION
     • AddSkin
     • AddSpellAlert
     • AddType
     • GetBackdrop
     • GetDefaultSkin
     • GetGloss
     • GetGroupByID
     • GetNormal
     • GetShadow
     • GetSlotIcon
     • GetSkin
     • GetSkins
     • GetSpellAlert
     • Group
     • Register
     • SetEmpty
     • UpdateCharge
     • UpdateSpellAlert
  ⚬ Group API
  ⚬ Regions

Skins
  • Skin List

Mirrors
  • CurseForge
  • Wago.io
  • Wow Interface

Clone this wiki locally