AddSkin - SFX-WoW/Masque GitHub Wiki

Contents

The AddSkin method of Masque's API adds a skin and its associated information to Masque.

Example

-- Establish a reference to Masque.
local Masque = LibStub("Masque", true)

-- Add a new skin to Masque.
Masque:AddSkin("New Skin", {
   -- Skin settings here.
})

Signature

{Masque}:AddSkin("SkinID", {SkinData})

Parameters

Parameter Type Required Description
SkinID string Yes The name of the skin.
SkinData table Yes A table containing the skin settings for regions.
Notes

  • Any regions omitted from the SkinData table will fall back to the settings of the default skin.
  • Information on skin settings can be found in the region section.

9.0.4 90002

  • Removed the Replace parameter.
⚠️ **GitHub.com Fallback** ⚠️