m
another "better fit the boilerplate" change
(Clarified the differences between what you two are saying. You're both right.) |
m (another "better fit the boilerplate" change) |
||
| Line 1: | Line 1: | ||
{{widgetmethod}} | {{widgetmethod}} __NOTOC__ | ||
Changes the item which is displayed in the tooltip according to the passed argument. | |||
SetHyperlink( | GameTooltip:SetHyperlink("itemString" or "itemLink") | ||
== Arguments == | |||
:("itemString" or "itemLink") | |||
:;"itemString" - [[itemString]] - Representing an in-game item or enchant. For instance: | |||
:: "item:16846:0:0:0:0:0:0:0" is the link id for the "Giantstalker's Helm". | |||
:: "enchant:23804" is the link id for "Enchant Weapon - Mighty Intellect". | |||
:;"itemLink" - [[itemLink]] - A clickable string of an in-game item. | |||
== Returns == | |||
:; nil | |||
== | == Example == | ||
GameTooltip:SetHyperlink("item:16846:0:0:0:0:0:0:0") | |||
<big>'''Result'''</big> | |||
:This will replace the currently showing tooltip with one containing the information for the Giantstalker Helm. | |||
: | |||
== Details == | |||
: Calling this function with the same link which is currently shown, will close the Tooltip. | : Calling this function with the same link which is currently shown, will close the Tooltip. | ||
| Line 34: | Line 28: | ||
: Calling this function with an enchant id that does not exist, will give the error message "Unknown link type". | : Calling this function with an enchant id that does not exist, will give the error message "Unknown link type". | ||