Tooltip is not displayed yet
Lua Code:
local tooltip = f.tooltip
tooltip:SetScript("OnEnter", function(self, button)
if (CursorHasItem() == false) then
GameTooltip:SetOwner(tooltip, "ANCHOR_CURSOR")
GameTooltip:AddLine(db.profile["Bars"][frm:GetID()][i].item)
GameTooltip:Show()
end
end
)
tooltip:SetScript("OnLeave", function(self, button)
GameTooltip:Hide()
end)
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