Wowpedia
Advertisement
Wowpedia
240,442
pages

Shows the tooltip for the specified talent.

GameTooltip:SetTalent(talentIndex [, isInspect, talentGroup, inspectedUnit, classId])

Arguments

talentIndex 
number - Index of the talent to display the tooltip of, ascending from 1.
isInspect 
boolean - If true, respect the classId argument; otherwise, display the player's talentIndex talent.
talentGroup 
number?Optional. Could be nil. - Ignored; supply nil.
inspectedUnit 
string?Optional. Could be nil. - Ignored (UnitId); supply nil.
classId 
number?Optional. Could be nil. - ClassId the talentIndex belongs to.

Examples

Display the player's first talent:

GameTooltip_SetDefaultAnchor(GameTooltip, UIParent)
GameTooltip:SetTalent(1)
GameTooltip:Show()

Display the first Monk talent (using classId 10):

GameTooltip_SetDefaultAnchor(GameTooltip, UIParent)
GameTooltip:SetTalent(1, true, nil, nil, 10)
GameTooltip:Show()

Patch history

  • Mists of Pandaria Patch 5.0.4 / API (2012-08-28): Arguments changed; talent tabs no longer exist.
Advertisement