Fandom

WoWWiki

UIHANDLER OnTooltipSetItem

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Widget handlers < OnTooltipSetItem

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

Arguments Edit

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

Example Edit

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


Details Edit

This function was added in WoW 2.0.3
This gets called twice for Recipes which contain embedded items

Also on Fandom

Random Wiki