Quantcast
WoWInterface - View Single Post - Making An itemLink Interactive/Clickable and Show Tooltip
View Single Post
07-14-20, 08:31 PM   #2
DahkCeles
An Aku'mai Servant
 
DahkCeles's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2020
Posts: 32
Would this help?

https://wow.gamepedia.com/API_GameTooltip_SetHyperlink

Lua Code:
  1. LinkFrame:HookScript("OnEnter", function()
  2.   if (itemLink) then
  3.     GameTooltip:SetOwner(LinkFrame, "ANCHOR_TOP")
  4.     GameTooltip:SetHyperlink(itemLink)
  5.     GameTooltip:Show()
  6.   end
  7. end)
  8.  
  9. LinkFrame:HookScript("OnLeave", function()
  10.   GameTooltip:Hide()
  11. end
  Reply With Quote