API GameTooltip SetHyperlink
Changes the tooltip to display the linked object.
- String - Either a full in-game link string (including color codes and |H escape sequences), or merely a fragment of the link portion (e.g. "item:16846").
- Some supported link types are: talent, quest, spell, glyph, trade, unit, item.
- Calling this function with the same link which is currently shown, will close the Tooltip.
- If you attempt to reference an item that is not in your local cache, i.e. you've never seen it before, the client will query the server for information about that item. Since patch 2.2.3, querying item information for an itemID which has not been seen on your server since last restart will no longer result in a disconnect.
- Calling this function with an enchant id that does not exist, will give the error message "Unknown link type".
The following snippet will replace the currently showing tooltip with one containing the information for the Giantstalker Helm.
GameTooltip_SetDefaultAnchor(GameTooltip, UIParent) GameTooltip:SetHyperlink("item:16846:0:0:0:0:0:0:0") GameTooltip:Show()