turtle-wow: disable turtle map if map is enabled

This commit is contained in:
shagu
2023-10-03 13:27:12 +02:00
parent f2954cf779
commit 7778e55eb6
+27
View File
@@ -0,0 +1,27 @@
-- Skip module initialization on every other client than TurtleWoW.
if not TargetHPText or not TargetHPPercText then return end
pfUI:RegisterModule("turtle-wow", "vanilla", function ()
local delay = CreateFrame("Frame")
delay:SetScript("OnUpdate", function()
if pfUI.map then
-- while pfUI map is loaded, disable turtle wows window-implementation
_G.WorldMapFrame_Maximize()
pfUI.map.loader:GetScript("OnEvent")()
_G.WorldMapFrame_Minimize = function() return end
_G.WorldMapFrame_Maximize = function() return end
_G.WorldMapFrameMaximizeButton.Show = function() return end
_G.WorldMapFrameMaximizeButton:Hide()
_G.WorldMapFrameMinimizeButton.Show = function() return end
_G.WorldMapFrameMinimizeButton:Hide()
WorldMapFrameTitle.Show = function() return end
WorldMapFrameTitle:Hide()
end
this:Hide()
end)
end)