Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Deimos
ProjectAzilroka
Commits
1c7b75ea
Commit
1c7b75ea
authored
Dec 27, 2018
by
Azilroka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Failsafe SMB
parent
621e70f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Modules/SquareMinimapButtons.lua
Modules/SquareMinimapButtons.lua
+4
-4
No files found.
Modules/SquareMinimapButtons.lua
View file @
1c7b75ea
...
...
@@ -349,11 +349,11 @@ end
function
SMB
:
Update
()
if
not
SMB
.
db
[
'BarEnabled'
]
then
return
end
local
AnchorX
,
AnchorY
,
MaxX
=
0
,
1
,
SMB
.
db
[
'ButtonsPerRow'
]
local
ButtonsPerRow
=
SMB
.
db
[
'ButtonsPerRow'
]
local
AnchorX
,
AnchorY
,
MaxX
=
0
,
1
,
SMB
.
db
[
'ButtonsPerRow'
]
or
12
local
ButtonsPerRow
=
SMB
.
db
[
'ButtonsPerRow'
]
or
12
local
NumColumns
=
ceil
(
#
SMB
.
Buttons
/
ButtonsPerRow
)
local
Spacing
,
Mult
=
SMB
.
db
[
'ButtonSpacing'
],
1
local
Size
=
SMB
.
db
[
'IconSize'
]
local
Spacing
,
Mult
=
SMB
.
db
[
'ButtonSpacing'
]
or
2
,
1
local
Size
=
SMB
.
db
[
'IconSize'
]
or
27
local
ActualButtons
,
Maxed
=
0
if
NumColumns
==
1
and
ButtonsPerRow
>
#
SMB
.
Buttons
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment