WoW API: GetNumTalentTabs

Revision as of 19:47, 12 October 2007 by WoWWiki>Nayala (Add 2.3 inspect option.)

WoW API < GetNumTalentTabs

Returns the total number of tabs of talents one has.

numTabs = GetNumTalentTabs([inspect]);

Arguments
inspect
Boolean - If true returns the information for the inspected unit instead of the player. New with 2.3.

Returns
numTabs
Integer - The number of tabs one has.

Example
local numTabs = GetNumTalentTabs()
DEFAULT_CHAT_FRAME:AddMessage( numTabs )
    
Results
Displays the number of talents tabs one has.