AddSpellAlert - SFX-WoW/Masque GitHub Wiki
The AddSpellAlert
method of Masque's API adds a spell alert texture set for a custom shape.
-- Establish a reference to Masque.
local Masque = LibStub("Masque", true)
local glow = "Path\\To\\Glow\\Texture"
local ants = "Path\\To\\Ants\\Texture"
-- Add custom spell alert textures.
Masque:AddSpellAlert("Shape", glow, ants)
Notes
- Any skin that will use this texture set must have a matching
Shape
parameter.
{Masque}:AddSpellAlert("Shape", "Glow", "Ants")
Parameter | Type | Required | Description |
---|---|---|---|
Shape |
string | Yes | The name of the custom shape to assign the texture set to. |
Glow |
string | Yes | The path to the Glow texture. |
Ants |
string | Yes | The path to the Ants texture. |
Notes
- Missing
Glow
andAnts
textures will fall back to the defaultSquare
set if missing. - The
Glow
andAnts
parameters will overwrite those of an existing shape of the same name, if provided.