Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GameTooltip SetHyperlink
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{widgetmethod}} __NOTOC__ Changes the item which is displayed in the tooltip according to the passed argument. GameTooltip:SetHyperlink("itemString" or "itemLink") == Arguments == :("itemString" or "itemLink") :;"itemString" - [[itemString]] - Representing an in-game item, enchant or spell. 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". :: "spell:16039" is the link id for the [[shaman]] [[talent]] "[[Convection]]". :: "quest:8336" is the link id for the "A Fistful of Slivers" quest". :;"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. : 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".
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Widget
(
edit
)
Template:Widgetmethod
(
edit
)