API GetSpellTabInfo

Retrieves information about the specified line of spells name, texture, offset, numSpells, isGuild = GetSpellTabInfo(spellbookTabNum)

Parameters
Arguments


 * spellbookTabNum : Number - The index of the tab, ranges from 1 to GetNumSpellTabs

Returns


 * name, texture, offset, numSpells


 * name : String - The name of the spell line (General, Shadow, Fury, etc.)
 * texture : String - The texture path for the spell line's icon (nil for guild perks)
 * offset : Number - The number of spells before this spell line (will be one less than the index of the first spell in this spell line)
 * numSpells : Number - The number of spells in this spell line
 * isGuild : Boolean - true for Guild Perks, false otherwise

Example
for i = 1, GetNumSpellTabs do   local name, texture, offset, numSpells, isGuild = GetSpellTabInfo(i) for s = offset + 1, offset + numSpells do      local spellName, subSpellName = GetSpellBookItemName(s, BOOKTYPE_SPELL) if subSpellName then spellName = spellName.." ("..subSpellName..")" end print(name..": "..spellName); end end