WoW:API GetTalentTabInfo

Revision as of 02:40, 27 September 2005 by WoWWiki>WoWWiki-Santa (Fixed typo in function name.)

Returns the name of the talent tab

nameTab = GetTalentTabInfo( tabIndex );

Arguments
tabIndex
Integer - Specifies which tab to identify.

Returns
nameTab
String - The name of that tab.

Example
local i = 1 
while i <= GetNumTalentTabs() do 
	local numTalents = GetNumTalents(i) 
       DEFAULT_CHAT_FRAME:AddMessage( i .. ' ' .. GetTalentTabInfo(i) .. ' ' )
       i = i+1
end
Results
Displays the tabIndex number for each tab followed by the name of the tab.

Template:WoW API