Save ZoomLevel
Steven Mey [11-29-19 - 19:51]
diff --git a/D2Minimap.lua b/D2Minimap.lua
index f00d2e9..eb245af 100644
--- a/D2Minimap.lua
+++ b/D2Minimap.lua
@@ -4,6 +4,7 @@ D2MinimapSettings = {
["Frames"] = {
["Minimap"] = {
["Shown"] = true,
+ ["Zoom"] = 5,
["PlayerArrow"] = false,
["MaskSquare"] = false,
["Alpha"] = .1,
@@ -53,6 +54,8 @@ function D2Minimap_save()
end)
end
end
+ D2MinimapSettings["Frames"]["Minimap"]["Shown"] = Minimap:IsShown()
+ D2MinimapSettings["Frames"]["Minimap"]["Zoom"] = Minimap:GetZoom()
end
local function D2Minimap_init(self, event, addon, ...)
@@ -82,7 +85,7 @@ local function D2Minimap_init(self, event, addon, ...)
Minimap:EnableMouse(false)
- Minimap:SetZoom(5)
+ Minimap:SetZoom(D2MinimapSettings["Frames"]["Minimap"]["Zoom"])
SetCVar("rotateMinimap", true)
-- MinimapZoneTextButton and MinimapBorderTop