WoW:API GameTooltip GetItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m ('tis new)
 
(more that SetHyperlink trigger this handler...)
Line 5: Line 5:
  itemName, [[ItemLink]] = ''GameTooltip'':GetItem();
  itemName, [[ItemLink]] = ''GameTooltip'':GetItem();


Return the returns the name and link of the item that was passed to [[API_GameTooltip_SetHyperlink|GameTooltip:SetHyperlink]]()
Returns the name and link of the item displayed on a GameTooltip.


----
----

Revision as of 08:40, 18 July 2007

Widget API ← GameTooltip < GetItem


itemName, ItemLink = GameTooltip:GetItem();

Returns the name and link of the item displayed on a GameTooltip.


Arguments
none

Returns
itemName, ItemLink
itemName
Plain text item name (e.g. "Broken Fang").
ItemLink
Formatted item link (e.g. "|cff9d9d9d|Hitem:7073:0:0:0:0:0:0:0|h[Broken Fang]|h|r").