API GameTooltip SetTalent

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 : Optional Flag - If non-nil, respect the classId argument; otherwise, display the player's  talent.
 * talentGroup : Optional Number - ignored.
 * inspectedUnit : Optional String (unitId) - ignored.
 * classId : Optional Number (classId) - Class ID the talentIndex belongs to.

Examples
You can display a tooltip showing the player's first talent using: GameTooltip_SetDefaultAnchor(GameTooltip, UIParent) GameTooltip:SetTalent(1) GameTooltip:Show You can display a tooltip showing the first Monk talent using: GameTooltip_SetDefaultAnchor(GameTooltip, UIParent) GameTooltip:SetTalent(1, true, nil, nil, 10) GameTooltip:Show where 10 is the classId for Monks.