mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
thirdparty: fix dpsmate loading order issue
This commit is contained in:
+15
-2
@@ -3,8 +3,7 @@ pfUI:RegisterModule("thirdparty", function ()
|
|||||||
|
|
||||||
-- DPSMate Integration
|
-- DPSMate Integration
|
||||||
-- Move DPSMate to right chat and let the chat-hide button toggle it
|
-- Move DPSMate to right chat and let the chat-hide button toggle it
|
||||||
if DPSMate and pfUI_config.thirdparty.dpsmate.enable == "1" then
|
local function pfSetupDPSMate()
|
||||||
|
|
||||||
-- set DPSMate appearance to match pfUI
|
-- set DPSMate appearance to match pfUI
|
||||||
DPSMateSettings["windows"][1]["titlebarheight"] = 18
|
DPSMateSettings["windows"][1]["titlebarheight"] = 18
|
||||||
DPSMateSettings["windows"][1]["titlebarfontsize"] = 12
|
DPSMateSettings["windows"][1]["titlebarfontsize"] = 12
|
||||||
@@ -59,7 +58,21 @@ pfUI:RegisterModule("thirdparty", function ()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if pfUI_config.thirdparty.dpsmate.enable == "1" then
|
||||||
|
if DPSMate_DPSMate then
|
||||||
|
pfSetupDPSMate()
|
||||||
|
else
|
||||||
|
local pfHookDPSMate = CreateFrame("Frame", nil)
|
||||||
|
pfHookDPSMate:RegisterEvent("VARIABLES_LOADED")
|
||||||
|
pfHookDPSMate:SetScript("OnEvent",function()
|
||||||
|
if DPSMate_DPSMate then
|
||||||
|
pfHookDPSMate:UnregisterEvent("VARIABLES_LOADED")
|
||||||
|
pfSetupDPSMate()
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- WIM Integration
|
-- WIM Integration
|
||||||
|
|||||||
Reference in New Issue
Block a user