The API is no longer being updated here until further notice. |
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? - Ignored; supply nil.
- inspectedUnit
- string? - Ignored (UnitId); supply nil.
- classId
- number? - 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[]
- Patch 5.0.4 (2012-08-28): Arguments changed; talent tabs no longer exist.