mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-20 19:30:49 +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 ()
|
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)
|
local pfMapLoader = CreateFrame("Frame", nil, UIParent)
|
||||||
pfMapLoader:RegisterEvent("PLAYER_ENTERING_WORLD")
|
pfMapLoader:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||||
pfMapLoader:SetScript("OnEvent", function()
|
pfMapLoader:SetScript("OnEvent", function()
|
||||||
@@ -61,4 +71,4 @@ pfUI:RegisterModule("map", function ()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user