From cdd846c3e60169e675361c8fa8128b289a8ad8a0 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sat, 13 Feb 2021 22:00:45 -0500 Subject: [PATCH] Made the volume sliders scroll more consistently --- scene/game_config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/game_config.lua b/scene/game_config.lua index 4a04b23..a3905e0 100644 --- a/scene/game_config.lua +++ b/scene/game_config.lua @@ -103,7 +103,7 @@ function ConfigScene:onInputPress(e) else playSE("cursor") sld = self[self.options[self.highlight][4]] - sld.value = math.max(sld.min, math.min(sld.max, (sld:getValue() - 3) / (sld.max - sld.min))) + sld.value = math.max(sld.min, math.min(sld.max, (sld:getValue() - 5) / (sld.max - sld.min))) end elseif e.input == "right" or e.scancode == "right" then if not self.options[self.highlight][3] then @@ -113,7 +113,7 @@ function ConfigScene:onInputPress(e) else playSE("cursor") sld = self[self.options[self.highlight][4]] - sld.value = math.max(sld.min, math.min(sld.max, (sld:getValue() + 3) / (sld.max - sld.min)))--math.max(0, (math.floor(sld:getValue())+2)/(sld.max-sld.min)) + sld.value = math.max(sld.min, math.min(sld.max, (sld:getValue() + 5) / (sld.max - sld.min)))--math.max(0, (math.floor(sld:getValue())+2)/(sld.max-sld.min)) end elseif e.input == "menu_back" or e.scancode == "delete" or e.scancode == "backspace" then loadSave()