WoW:API GetTalentTabInfo

From AddOn Studio
Revision as of 17:28, 19 March 2005 by WoWWiki>JoseJr
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns the name of the talent tab

nameTab = GetNumTalentTabInfo( 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