Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

UIHANDLER OnTooltipSetItem

Last wiki revision 2022-10-20

Invoked when an item's information is added to a tooltip.

  • arg1: Tooltip - The Tooltip object to which an item was added.

-- overload the base function for ItemRefTooltip with a custom routine ItemRefTooltip:HookScript("OnTooltipSetItem", function(tooltip, ...) local name, link = tooltip:GetItem local texture = select(10, GetItemInfo(link)) --Add the name and path of the item's texture tooltip:AddLine(texture) --Show the texture graphic on the previous line tooltip:AddTexture(texture) --Repaint tooltip with newly added lines tooltip:Show end)

  • This gets called twice for Recipes which contain embedded items

Source

https://warcraft.wiki.gg/wiki/UIHANDLER_OnTooltipSetItem · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.