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
+2 -1
View File
@@ -559,8 +559,9 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("thirdparty", "ktm", "dock", "0")
pfUI:UpdateConfig("thirdparty", "wim", "enable", "1")
pfUI:UpdateConfig("thirdparty", "healcomm", "enable", "1")
pfUI:UpdateConfig("thirdparty", "sortbags", "enable", "1")
pfUI:UpdateConfig("thirdparty", "sortbags", "enable", "1")
pfUI:UpdateConfig("thirdparty", "flightmap", "enable", "1")
pfUI:UpdateConfig("thirdparty", "atlasloot", "enable", "1")
pfUI:UpdateConfig("position", nil, nil, nil)
pfUI:UpdateConfig("disabled", nil, nil, nil)
+1
View File
@@ -1416,6 +1416,7 @@ pfUI:RegisterModule("gui", function ()
CreateConfig(this, T["HealComm"], C.thirdparty.healcomm, "enable", "checkbox")
CreateConfig(this, T["SortBags"], C.thirdparty.sortbags, "enable", "checkbox")
CreateConfig(this, T["FlightMap"], C.thirdparty.flightmap, "enable", "checkbox")
CreateConfig(this, T["AtlasLoot"], C.thirdparty.atlasloot, "enable", "checkbox")
this.setup = true
end
end)
+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)