WoW:API GetTalentTabInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Fixed typo in function name.)
No edit summary
Line 1: Line 1:
Returns the name of the talent tab
Returns the information of the talent tab (tree)


  ''nameTab'' = GetTalentTabInfo( ''tabIndex'' );
  ''name, iconTexture, pointsSpent, background'' = GetTalentTabInfo( ''tabIndex'' );


----
----
;''Arguments''
;''Arguments''


:;tabIndex : Integer - Specifies which tab to identify.
:;tabIndex : Integer - Specifies which tab (tree) to identify.


----
----
;''Returns''
;''Returns''


:;nameTab : String - The name of that tab.
:;name : String - The name of that tab.
:;iconTexture : String - Path and file name of tab icon.
:;pointsSpent : Integer - Number of points put into that tab.
:;background : String - File name of background image.


----
----

Revision as of 23:16, 20 May 2006

Returns the information of the talent tab (tree)

name, iconTexture, pointsSpent, background = GetTalentTabInfo( tabIndex );

Arguments
tabIndex
Integer - Specifies which tab (tree) to identify.

Returns
name
String - The name of that tab.
iconTexture
String - Path and file name of tab icon.
pointsSpent
Integer - Number of points put into that tab.
background
String - File name of background image.

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