The API is no longer being updated here until further notice. |
<GameTooltip> (inherits from <Frame>, creates a GameTooltip widget) formats a tooltip.
<GameTooltip />
Details[]
- The common GameTooltip is named
_G["GameTooltip"]
, but AddOns can make their own scanning tooltips or custom appearances. - The GameTooltip will not function unless it has two <FontString> regions named
$parentTextLeft1
and$parentTextLeft2
.- These regions may be inherited from SharedTooltipTemplate {, } or GameTooltipTemplate {, }.
Example[]
Creates a minimalist tooltip (no textures):
<GameTooltip name="MinimumTooltip">
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentTextLeft1" inherits="TooltipTextLeftTemplate" />
<FontString name="$parentTextRight1" inherits="TooltipTextRightTemplate" />
</Layer>
</Layers>
</GameTooltip>
Creates a more fully-featured tooltip:
<GameTooltip name="UsefulTooltip" inherits="GameTooltipTemplate" />