WoW:API GetTalentTabInfo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(upgraded deprecated template) |
||
| Line 1: | Line 1: | ||
{{wowapi}} | |||
Returns the information of the talent tab (tree) | Returns the information of the talent tab (tree) | ||
| Line 27: | Line 28: | ||
;''Results'' : Displays the tabIndex number for each tab followed by the name of the tab. | ;''Results'' : Displays the tabIndex number for each tab followed by the name of the tab. | ||
Revision as of 18:08, 6 January 2007
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.