SetEmpty - SFX-WoW/Masque GitHub Wiki

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.
⚠️ **GitHub.com Fallback** ⚠️