GetTalentTabInfo

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Returns information for a talent tab (tree).

name, texture, pointsSpent, fileName = 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

name
string
texture
string - This is always nil on Classic.
pointsSpent
number - Number of points put into the tab.
fileName
string - File name of the background image.

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

Wrath-Logo-Small.png Patch 3.4.0 (2022-08-30): Added isPet and talentGroup parameters.
Bc icon.gif Patch 2.5.1 (2021-05-18): Added isInspect parameter.
WoW Icon update.png Patch 1.13.2 (2019-08-26): Added.