mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 18:06:02 +00:00
map: don't close other windows for worldmap
This commit is contained in:
+11
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user