From 594cec62ad3ada3e87eda1d6512e67f6f0b149d2 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Thu, 15 Jun 2023 00:30:20 -0400 Subject: [PATCH] Results screen now moves to Story menu if we are in story mode --- source/funkin/play/ResultState.hx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source/funkin/play/ResultState.hx b/source/funkin/play/ResultState.hx index 12be46fc8..302858f2f 100644 --- a/source/funkin/play/ResultState.hx +++ b/source/funkin/play/ResultState.hx @@ -1,5 +1,6 @@ package funkin.play; +import funkin.ui.story.StoryMenuState; import funkin.graphics.adobeanimate.FlxAtlasSprite; import flixel.FlxBasic; import flixel.FlxSprite; @@ -355,7 +356,17 @@ class ResultState extends MusicBeatSubState if (FlxG.keys.justPressed.COMMA) songName.angle -= 0.1; - if (controls.PAUSE) FlxG.switchState(new FreeplayState()); + if (controls.PAUSE) + { + if (PlayStatePlaylist.isStoryMode) + { + FlxG.switchState(new StoryMenuState()); + } + else + { + FlxG.switchState(new FreeplayState()); + } + } super.update(elapsed); }