diff --git a/source/funkin/ui/options/OptionsState.hx b/source/funkin/ui/options/OptionsState.hx index b271852c1..dff5848c6 100644 --- a/source/funkin/ui/options/OptionsState.hx +++ b/source/funkin/ui/options/OptionsState.hx @@ -290,6 +290,11 @@ class OptionsMenu extends Page override function update(elapsed:Float):Void { + if ((FlxG.sound.music?.volume ?? 1.0) < 0.8) + { + FlxG.sound.music.volume += 0.5 * elapsed; + } + #if FEATURE_TOUCH_CONTROLS backButton.active = (!goingBack) ? !items.busy : true; #end diff --git a/source/funkin/ui/story/StoryMenuState.hx b/source/funkin/ui/story/StoryMenuState.hx index b8d2df685..6d9c74071 100644 --- a/source/funkin/ui/story/StoryMenuState.hx +++ b/source/funkin/ui/story/StoryMenuState.hx @@ -330,6 +330,11 @@ class StoryMenuState extends MusicBeatState handleKeyPresses(); + if ((FlxG.sound.music?.volume ?? 1.0) < 0.8) + { + FlxG.sound.music.volume += 0.5 * elapsed; + } + super.update(elapsed); } diff --git a/source/funkin/ui/title/TitleState.hx b/source/funkin/ui/title/TitleState.hx index 9f3f80b04..c2cb02b3d 100644 --- a/source/funkin/ui/title/TitleState.hx +++ b/source/funkin/ui/title/TitleState.hx @@ -317,6 +317,11 @@ class TitleState extends MusicBeatState } if (pressedEnter && !skippedIntro && initialized) skipIntro(); + if ((FlxG.sound.music?.volume ?? 1.0) < 0.8 && initialized) + { + FlxG.sound.music.volume += 0.5 * elapsed; + } + // TODO: Maybe use the dxdy method for swiping instead. if (controls.UI_LEFT #if mobile || SwipeUtil.justSwipedLeft #end) swagShader.update(-elapsed * 0.1); if (controls.UI_RIGHT #if mobile || SwipeUtil.justSwipedRight #end) swagShader.update(elapsed * 0.1);