Skip to content

AddSpellAlert

StormFX edited this page Dec 13, 2022 · 1 revision

Contents

The AddSpellAlert method of Masque's API adds a spell alert texture set for a custom shape.

Example

-- 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.

Signature

{Masque}:AddSpellAlert("Shape", "Glow", "Ants")

Parameters

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 and Ants textures will fall back to the default Square set if missing.
  • The Glow and Ants 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

Clone this wiki locally