WoW:API GetSpellTabInfo

From AddOn Studio
Revision as of 23:04, 31 December 2004 by WoWWiki>Flickering (Fixed title.)
Jump to navigation Jump to search
GetSpellTabInfo -Documentation by Lorrick-

Returns information about the specified spellbook tab.

name, texture, offset, numSpells = GetSpellTabInfo({spellbookTabNum});

Arguments
( spellbookTabNum )
spellbookTab
Integer - Spellbook tab to retrieve information for. Valid values are 1 through MAX_SKILLLINE_TABS(8).

Returns
Not too familiar with LUA terminology yet so bear with me. Returns 4 values that I could tell.
name, texture, offset, numSpells
name
String - Spellbook Tab Name
texture
String - Spellbook Tab Texture
offset
Number - Spellbook Tab Offset
numSpells
Number - Number of spells for this tab.

Example
name, texture, offset, numSpells = GetSpellTabInfo(1);
Result

Description
Retreive information for specified spellbook tab.

Template:WoW API