1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-04 13:54:22 +00:00

Results screen now moves to Story menu if we are in story mode

This commit is contained in:
EliteMasterEric 2023-06-15 00:30:20 -04:00
parent 7a47221250
commit 594cec62ad

View file

@ -1,5 +1,6 @@
package funkin.play; package funkin.play;
import funkin.ui.story.StoryMenuState;
import funkin.graphics.adobeanimate.FlxAtlasSprite; import funkin.graphics.adobeanimate.FlxAtlasSprite;
import flixel.FlxBasic; import flixel.FlxBasic;
import flixel.FlxSprite; import flixel.FlxSprite;
@ -355,7 +356,17 @@ class ResultState extends MusicBeatSubState
if (FlxG.keys.justPressed.COMMA) songName.angle -= 0.1; 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); super.update(elapsed);
} }