Widget API: GameTooltip:GetItem

From AddOn Studio
Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GameTooltip GetItem to API GameTooltip GetItem without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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").