RemoveButton - SFX-WoW/Masque GitHub Wiki

Contents

The RemoveButton method of the Group API removes a button from the calling group and then applies a default skin to the button's regions.

Example

MSQ_Group:RemoveButton(Button1)
Notes

  • If the group is enabled, the default skin of the add-on will be applied prior to the removal of the button, if one is supplied. If no add-on skin is available, the default skin will be applied.
  • The removal of the button is permanent, so this method should only be called if the button will no longer be eligible to be skinned by Masque.
  • To move a button to another group, use AddButton on the new group, which will reassign the button to that group and apply its skin settings.

Signature

{Group}:RemoveButton({Button})

Parameters

Parameter Type Required Description
Button table Yes The button object to remove from the group.
⚠️ **GitHub.com Fallback** ⚠️