thirdparty: add atlasloot tooltip integration

This commit is contained in:
shagu
2017-12-08 18:08:05 +01:00
parent 512a0798b3
commit 36fe8aafd1
3 changed files with 22 additions and 1 deletions
+19
View File
@@ -743,4 +743,23 @@ pfUI:RegisterModule("thirdparty", function ()
FlightMapTimesText:SetPoint("CENTER", FlightMapTimesFrame, "CENTER", 0, 0)
FlightMapTimesText:SetFont(pfUI.font_default, 12, "OUTLINE")
end)
AddIntegration("AtlasLoot", function()
if C.thirdparty.atlasloot.enable == "0" then return end
CreateBackdrop(AtlasLootTooltip)
if pfUI.eqcompare then
local AtlasCompare = CreateFrame( "Frame" , "pfEQCompareAtlas", AtlasLootTooltip )
AtlasCompare:SetScript("OnShow", function()
if this.itemLink then message(this.itemLink) end
pfUI.eqcompare.ShowCompare(AtlasLootTooltip)
end)
AtlasCompare:SetScript("OnHide", function()
ShoppingTooltip1:Hide()
ShoppingTooltip2:Hide()
end)
end
end)
end)