ReSkin - SFX-WoW/Masque GitHub Wiki

Contents

The ReSkin method of the Group API reapplies the calling group's skin settings to its buttons.

Example

-- Refresh a group's skin without firing a callback.
MSQ_Group:ReSkin(true)

-- Refresh a button's skin.
MSQ_Group:ReSkin(Button1)
Notes

  • This method can be used to counter any changes made by an add-on that may affect Masque's settings.
  • This method can be used to refresh the skin on a single button by passing the button as an argument.
  • This method does not re-skin sub-groups.

Signature

{Group}:ReSkin([Silent or {Button}])

Parameters

Parameter Type Required Description
Button table No Refreshes the skin on the passed button.
Silent boolean No Determines whether the add-on or group callback is fired.
Notes

  • If a button is passed, it must be registered with the calling group.
  • This method accepts a boolean or a table. If true is passed, the group's skin will be refreshed without firing a callback. If a button is passed, only that button's skin will be refreshed.

9.0.4 90002

  • Added the ability to refresh a single button by passing the button.

8.2.5 80200

  • Added the Silent parameter to allow for bypassing the group's callback.
⚠️ **GitHub.com Fallback** ⚠️