Simple.
Add this to the .toc file:
Code:
##SavedVariables: FerousMinimapScale
And this to the top of the .lua file:
Code:
local addon = ...
SLASH_MYSCRIPT1 = "/scale";
SlashCmdList["MYSCRIPT"] = function(cmd)
if not tonumber(cmd) then return end
Minimap:SetScale(tonumber(cmd))
FerousMinimapScale = tonumber(cmd)
end
local holder = CreateFrame("Frame")
holder:RegisterEvent("ADDON_LOADED")
holder:SetScript("OnEvent", function(self, arg1)
if arg1~=addon then return end
FerousMinimapScale = FerousMinimapScale or Minimap:GetScale()
Minimap:SetResizable(true)
Minimap:SetScale(FerousMinimapScale)
end)