mirror of
https://github.com/StyledStrike/musical-keyboard.git
synced 2025-03-04 03:13:36 -05:00
Properly sync octave with the slider
This commit is contained in:
parent
c664ead2c9
commit
c183d3d465
@ -348,7 +348,12 @@ function HUD:Init()
|
||||
self.rowOctave:SetValue(MKeyboard.Settings.octave)
|
||||
|
||||
self.rowOctave.DataChanged = function(_, val)
|
||||
MKeyboard.Settings.octave = math.ceil(val)
|
||||
if val < 0 then
|
||||
MKeyboard.Settings.octave = math.ceil(val)
|
||||
else
|
||||
MKeyboard.Settings.octave = math.floor(val)
|
||||
end
|
||||
|
||||
MKeyboard:SaveSettings()
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user