API GetSpellBookItemTexture

From Wowpedia
Jump to: navigation, search

Returns the icon of a spell book entry.

icon = GetSpellBookItemTexture("spellName")
     = GetSpellBookItemTexture(index, "bookType")

Arguments

spellName 
String - name of the spell book entry to query.

or

index 
Number - spell book slot index, ascending from 1.
bookType 
String - spell book to query; e.g.
  • BOOKTYPE_SPELL ("spell"), the player spell book
  • BOOKTYPE_PET ("pet"), the pet spell book

Returns

icon 
Number (fileID) - Icon fileId for the queried entry, or nil if the queried item does not exist.

Patch changes

Legion Patch 7.0.3 (2016-07-19): The icon is now returned as a fileID rather than a texture path.
Cataclysm Patch 4.0.1 (2010-10-12): Added.

See also