WoW:API GetSpellTabInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Fixed title.)
Line 1: Line 1:
  <center>'''TGetSpellTabInfo''' ''-Documentation by Lorrick-''</center>
  <center>'''GetSpellTabInfo''' ''-Documentation by Lorrick-''</center>


Returns information about the specified spellbook tab.
Returns information about the specified spellbook tab.


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


----
----
Line 15: Line 15:
;''Returns''
;''Returns''


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


----
----

Revision as of 23:04, 31 December 2004

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