GetSpellBookItemTexture
Jump to navigation
Jump to search
Returns the icon texture of a spellbook item.
icon = GetSpellBookItemTexture(spell) = GetSpellBookItemTexture(index, bookType)
Arguments
- spell
- number|string - Spell ID or Name. When passing a name requires the spell to be in your Spellbook.
Spellbook args | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
Returns
- icon
- number : FileID - Icon fileId for the queried entry, or nil if the queried item does not exist.
Patch changes
Patch 7.0.3 (2016-07-19): The icon is now returned as a fileID rather than a texture path.
Patch 4.0.1 (2010-10-12): Added.