@@ -182,6 +182,11 @@ function NMM:UpdateButtons()
182
182
self :Debug (" ElvUI case, we'll start with fewer managed buttons" )
183
183
NMM .buttons = {}
184
184
end
185
+ if NMM .square then
186
+ NMM .exclude [" MinimapBorder" ] = false
187
+ NMM .exclude [" MinimapBackdrop" ] = false
188
+ Minimap :SetMaskTexture (" " )
189
+ end
185
190
NMM .exclude [" TimeManagerClockButton" ] = not NMM .doClock
186
191
NMM .exclude [" MiniMapTrackingFrame" ] = not NMM .doTrack
187
192
for _ , b in ipairs ({Minimap :GetChildren ()}) do
@@ -344,6 +349,9 @@ function NMM:CreateOptionsPanel()
344
349
p :addText (L [" These options let you control the behavior of NeatMinimap" ] .. " " .. NMM .manifestVersion ..
345
350
" @project-abbreviated-hash@" ):Place ()
346
351
352
+ local makeSquare = p :addCheckBox (L [" Make the minimap square" ], L [" Experimental minimalistic square version" ])
353
+ :Place (4 , 20 )
354
+
347
355
local doClock = p :addCheckBox (L [" Also hide/show Clock" ], L [" Whether the Blizzard clock should also be hidden/shown" ])
348
356
:Place (4 , 20 )
349
357
local doNight = p :addCheckBox (L [" Also hide/show Day/Night (classic) Calendar (BfA) indicator" ],
@@ -396,6 +404,7 @@ function NMM:CreateOptionsPanel()
396
404
doGarrison :SetChecked (NMM .doGarrison )
397
405
doTrack :SetChecked (NMM .doTrack )
398
406
delaySlider :SetValue (NMM .delay )
407
+ makeSquare :SetValue (NMM .square )
399
408
NMM :ShowButtons ()
400
409
end
401
410
@@ -423,6 +432,7 @@ function NMM:CreateOptionsPanel()
423
432
NMM :SetSaved (" doGarrison" , doGarrison :GetChecked ())
424
433
NMM :SetSaved (" doTrack" , doTrack :GetChecked ())
425
434
NMM :SetSaved (" delay" , delaySlider :GetValue ())
435
+ NMM :SetSaved (" square" , makeSquare :GetChecked ())
426
436
NMM :SetupMouseInOut ()
427
437
NMM :ScheduleNextCheck ()
428
438
end
0 commit comments