map: don't close other windows for worldmap

This commit is contained in:
shagu
2017-10-01 23:45:06 +02:00
parent 8f983f9e7c
commit ca67aa012c
+11 -1
View File
@@ -1,4 +1,14 @@
pfUI:RegisterModule("map", function ()
function _G.ToggleWorldMap()
if WorldMapFrame:IsShown() then
WorldMapFrame:Hide()
else
WorldMapFrame:Show()
table.insert(UISpecialFrames, "WorldMapFrame")
end
end
local pfMapLoader = CreateFrame("Frame", nil, UIParent)
pfMapLoader:RegisterEvent("PLAYER_ENTERING_WORLD")
pfMapLoader:SetScript("OnEvent", function()
@@ -61,4 +71,4 @@ pfUI:RegisterModule("map", function ()
end
end)
end)
end)
end)