Originally Posted by SDPhantom
show the tooltip when it's done processing the cursor.
|
Code:
local function onReceive(self)
GameTooltip:Show()
local infoType, arg1, arg2 = GetCursorInfo()
if infoType=="item" then
local itemName, _, _, _, _, _, _, _, _, itemTexture = GetItemInfo(arg2)
db.profile["Bars"][frm:GetID()][i].item = itemName
ClearCursor()
end
end
Lua Code:
local function onReceive(self)
local infoType, arg1, arg2 = GetCursorInfo()
if infoType=="item" then
print(infoType, arg1, arg2)
local itemName, _, _, _, _, _, _, _, _, itemTexture = GetItemInfo(arg2)
db.profile["Bars"][frm:GetID()][i].item = itemName
ClearCursor()
tooltip:GetScript("OnEnter")(tooltip, false);-- Calls your OnEnter handler above
end
end
Note: See
https://wowpedia.fandom.com/wiki/UIHANDLER_OnEnter for
OnEnter handler args.