second argument can also be an itemLink
(Updated example itemStrings to have 8 fields for WoW 2.0) |
(second argument can also be an itemLink) |
||
| Line 3: | Line 3: | ||
== Syntax == | == Syntax == | ||
SetHyperlink( link ); | SetHyperlink(frame, link); | ||
| Line 11: | Line 11: | ||
=== Arguments === | === Arguments === | ||
:; [[itemString]] | :; frame : frame object, of which the hyperlink should be set | ||
:; link : [[itemString]] - a string representing an ingame item or enchant. For instance: | |||
::: "item:16846:0:0:0:0:0:0:0" is the link id for the "Giantstalker's Helm". | ::: "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". | ::: "enchant:23804" is the link id for "Enchant Weapon - Mighty Intellect". | ||
:: or [[itemLink]] - a clickable string of an ingame item. | |||
=== Returns === | === Returns === | ||
: | : nil | ||
== Remarks == | == Remarks == | ||
: Calling this function with a non-table variable as first argument, will do nothing. | |||
: 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 29: | Line 33: | ||
== Example == | == Example == | ||
GameTooltip:SetHyperlink("item:16846:0:0:0:0:0:0:0"); | GameTooltip:SetHyperlink(ItemRefTooltip, "item:16846:0:0:0:0:0:0:0"); | ||
=== Result === | === Result === | ||
: | :This will replace the currently showing tooltip with one containing the information for the Giantstalker Helm. | ||