(second argument can also be an itemLink) |
Shadowed51320@legacy41570690 (talk | contribs) (The only argument is the item link.) |
||
Line 3: | Line 3: | ||
== Syntax == |
== Syntax == |
||
− | SetHyperlink( |
+ | SetHyperlink(link); |
Line 11: | Line 11: | ||
=== Arguments === |
=== Arguments === |
||
− | :; frame : frame object, of which the hyperlink should be set |
||
:; link : [[itemString]] - a string representing an ingame item or enchant. For instance: |
:; 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". |
||
Line 22: | Line 21: | ||
== 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 33: | Line 30: | ||
== Example == |
== Example == |
||
− | GameTooltip:SetHyperlink( |
+ | GameTooltip:SetHyperlink("item:16846:0:0:0:0:0:0:0"); |
=== Result === |
=== Result === |
Revision as of 08:19, 17 April 2007
The API is no longer being updated here until further notice. |
Syntax
SetHyperlink(link);
Parameters
Arguments
- 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".
- "enchant:23804" is the link id for "Enchant Weapon - Mighty Intellect".
- or itemLink - a clickable string of an ingame item.
Returns
- nil
Remarks
- 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. If that particular item has not been seen since last server restart, the server will disconnect the client.
- Calling this function with an enchant id that does not exist, will give the error message "Unknown link type".
Example
GameTooltip:SetHyperlink("item:16846:0:0:0:0:0:0:0");
Result
- This will replace the currently showing tooltip with one containing the information for the Giantstalker Helm.