GetTalentTabInfo

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0
Removed in 5.0.4

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

Mists of Pandaria Patch 5.0.4 (2012-08-28): Removed.
Wrath-Logo-Small.png Patch 3.1.0 (2009-04-14): Added talentGroup parameter.
Wrath-Logo-Small.png Patch 3.0.2 (2008-10-14): Added isPet parameter.
Bc icon.gif Patch 2.3.0 (2007-11-13): Added isInspect parameter.

Classic

Cataclysm Patch 4.4.0 (2024-04-30): Added name, description, previewPointsSpent and isUnlocked arguments.
Wrath-Logo-Small.png Patch 3.4.0 (2022-08-30): Added isPet and talentGroup arguments.
Bc icon.gif Patch 2.5.1 (2021-05-18): Added isInspect argument.
WoW Icon update.png Patch 1.13.2 (2019-08-26): Added.