-
-
Notifications
You must be signed in to change notification settings - Fork 11
AddSpellAlert
StormFX edited this page Dec 13, 2022
·
1 revision
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.
Wiki
• Home
Project
• Contributors
• History
Reference
⚬ Masque API
• API_VERSION
• AddSkin
• AddSpellAlert
• AddType
• GetBackdrop
• GetDefaultSkin
• GetGloss
• GetGroupByID
• GetNormal
• GetShadow
• GetSlotIcon
• GetSkin
• GetSkins
• GetSpellAlert
• Group
• Register
• SetEmpty
• UpdateCharge
• UpdateSpellAlert
⚬ Group API
⚬ Regions
Skins
• Skin List
Mirrors
• CurseForge
• Wago.io
• Wow Interface