-
-
Notifications
You must be signed in to change notification settings - Fork 11
SetEmpty
StormFX edited this page Dec 13, 2022
·
1 revision
The SetEmpty
method of Masque's API notifies Masque of a button's empty status.
-- 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'sHide
andShow
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.
{Masque}:SetEmpty({Button} [, IsEmpty])
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