mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 13:10:00 +00:00
turtle-wow: disable turtle map if map is enabled
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user