GetTalentTabInfo
Jump to navigation
Jump to search
![]() |
This API only exists in Cata Classic and Classic Era. |
Returns information for a talent tab (tree).
id, name, description, icon, pointsSpent, background, previewPointsSpent, isUnlocked = GetTalentTabInfo(index[, isInspect, isPet, talentGroup])
Arguments
- index
- number - Ranging from 1 to GetNumTalentTabs()
- isInspect
- boolean? - Optional, will return talent tab info for the current inspect target if true (see NotifyInspect).
- isPet
- boolean? - Optional, will return talent tab info for the players' pet if true.
- talentGroup
- number? - Optional talent group to query for Dual Talent Specialization. Defaults to
1
for the primary specialization.
Returns
- id
- number
- name
- string
- description
- string
- icon
- number
- pointsSpent
- number - Number of points put into the tab.
- background
- number - File name of the background image.
- previewPointsSpent
- number
- isUnlocked
- boolean
Example
An example of how to use the fileName return value would be[1]
string.format("Interface\\TalentFrame\\%s-TopLeft", fileName)
Patch changes
Retail
Patch 5.0.4 (2012-08-28): Removed.
Patch 3.1.0 (2009-04-14): Added
talentGroup
parameter.
Patch 3.0.2 (2008-10-14): Added
isPet
parameter.
Patch 2.3.0 (2007-11-13): Added
isInspect
parameter.
Classic
Patch 4.4.0 (2024-04-30): Added
name
, description
, previewPointsSpent
and isUnlocked
arguments.
Patch 3.4.0 (2022-08-30): Added
isPet
and talentGroup
arguments.
Patch 2.5.1 (2021-05-18): Added
isInspect
argument.
Patch 1.13.2 (2019-08-26): Added.