mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
thirdparty: add atlasloot tooltip integration
This commit is contained in:
+2
-1
@@ -559,8 +559,9 @@ function pfUI:LoadConfig()
|
|||||||
pfUI:UpdateConfig("thirdparty", "ktm", "dock", "0")
|
pfUI:UpdateConfig("thirdparty", "ktm", "dock", "0")
|
||||||
pfUI:UpdateConfig("thirdparty", "wim", "enable", "1")
|
pfUI:UpdateConfig("thirdparty", "wim", "enable", "1")
|
||||||
pfUI:UpdateConfig("thirdparty", "healcomm", "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", "flightmap", "enable", "1")
|
||||||
|
pfUI:UpdateConfig("thirdparty", "atlasloot", "enable", "1")
|
||||||
pfUI:UpdateConfig("position", nil, nil, nil)
|
pfUI:UpdateConfig("position", nil, nil, nil)
|
||||||
pfUI:UpdateConfig("disabled", nil, nil, nil)
|
pfUI:UpdateConfig("disabled", nil, nil, nil)
|
||||||
|
|
||||||
|
|||||||
@@ -1416,6 +1416,7 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
CreateConfig(this, T["HealComm"], C.thirdparty.healcomm, "enable", "checkbox")
|
CreateConfig(this, T["HealComm"], C.thirdparty.healcomm, "enable", "checkbox")
|
||||||
CreateConfig(this, T["SortBags"], C.thirdparty.sortbags, "enable", "checkbox")
|
CreateConfig(this, T["SortBags"], C.thirdparty.sortbags, "enable", "checkbox")
|
||||||
CreateConfig(this, T["FlightMap"], C.thirdparty.flightmap, "enable", "checkbox")
|
CreateConfig(this, T["FlightMap"], C.thirdparty.flightmap, "enable", "checkbox")
|
||||||
|
CreateConfig(this, T["AtlasLoot"], C.thirdparty.atlasloot, "enable", "checkbox")
|
||||||
this.setup = true
|
this.setup = true
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -743,4 +743,23 @@ pfUI:RegisterModule("thirdparty", function ()
|
|||||||
FlightMapTimesText:SetPoint("CENTER", FlightMapTimesFrame, "CENTER", 0, 0)
|
FlightMapTimesText:SetPoint("CENTER", FlightMapTimesFrame, "CENTER", 0, 0)
|
||||||
FlightMapTimesText:SetFont(pfUI.font_default, 12, "OUTLINE")
|
FlightMapTimesText:SetFont(pfUI.font_default, 12, "OUTLINE")
|
||||||
end)
|
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)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user