SetEmpty - SFX-WoW/Masque GitHub Wiki
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.