From 70081be3cb809cd9c63bf2f5cca59dbc91a19db8 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Mon, 29 May 2023 14:38:55 +0530 Subject: [PATCH] fix syntax --- src/gui/OptionsDlg.hx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gui/OptionsDlg.hx b/src/gui/OptionsDlg.hx index e274bec9..4d50b3fe 100644 --- a/src/gui/OptionsDlg.hx +++ b/src/gui/OptionsDlg.hx @@ -301,6 +301,17 @@ class OptionsDlg extends GuiImage { current += 56; + makeOption("Rewind:", () -> '${Settings.optionsSettings.rewindEnabled ? "Enabled" : "Disabled"}', current, generalPanel, "small", + ["Disabled", "Enabled"], (idx) -> { + Settings.optionsSettings.rewindEnabled = idx == 1; + }, false); + + makeSlider("Rewind Speed:", (Settings.optionsSettings.rewindTimescale - 0.1) / (1 - 0.1), current, generalPanel, (val) -> { + Settings.optionsSettings.rewindTimescale = cast(0.1 + val * (1 - 0.1)); + }, true); + + current += 56; + makeSlider("Music Volume:", Settings.optionsSettings.musicVolume, current, generalPanel, (val) -> { Settings.optionsSettings.musicVolume = val; AudioManager.updateVolumes();