Skip to content

GetSlotIcon

StormFX edited this page Dec 13, 2022 · 1 revision

Contents

The GetSlotIcon method of Masque's API returns the SlotIcon texture currently assigned to a button.

Example

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

-- Get the SlotIcon texture.
local SlotIcon = Masque:GetSlotIcon(Button)

Signature

{SlotIcon} = {Masque}:GetSlotIcon({Button})

Parameters

Parameter Type Required Description
Button table Yes The button object to retrieve the SlotIcon texture from.

Returns

Return Type Description
SlotIcon table The SlotIcon texture object assigned to Button.

10.0.0 100000

  • Method added.

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