loot: fix unknown hover frame errors

This commit is contained in:
shagu
2016-11-06 20:34:27 +01:00
parent 1712b3a098
commit 3752ff3dd7
+6 -2
View File
@@ -41,13 +41,17 @@ pfUI:RegisterModule("loot", function ()
GameTooltip:SetLootItem(this:GetID()) GameTooltip:SetLootItem(this:GetID())
CursorUpdate() CursorUpdate()
end end
this.hover:Show() if this.hover then
this.hover:Show()
end
end) end)
frame:SetScript("OnLeave", function() frame:SetScript("OnLeave", function()
GameTooltip:Hide() GameTooltip:Hide()
ResetCursor() ResetCursor()
this.hover:Hide() if this.hover then
this.hover:Hide()
end
end) end)
frame.ficon = CreateFrame("Frame", "pfLootButtonIcon", frame) frame.ficon = CreateFrame("Frame", "pfLootButtonIcon", frame)