From 8edaf3cf2e57119f830b5e31ebb6e1a948fb3792 Mon Sep 17 00:00:00 2001 From: Joalor64 Date: Fri, 25 Aug 2023 20:50:41 -0400 Subject: [PATCH] Update ResultsSubState.hx --- source/meta/substate/ResultsSubState.hx | 38 ++++++++++++------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/source/meta/substate/ResultsSubState.hx b/source/meta/substate/ResultsSubState.hx index e89736dd..cc0be508 100644 --- a/source/meta/substate/ResultsSubState.hx +++ b/source/meta/substate/ResultsSubState.hx @@ -28,28 +28,28 @@ class ResultsSubState extends MusicBeatSubState { bg.alpha = 0.4; add(bg); - var titleTxt:FlxText = new FlxText(5, 0, 0, (PauseSubState.daSelected == 'SKip Song') ? 'y u skip??' : 'RESULTS', 72); - titleTxt.scrollFactor.set(); - titleTxt.setFormat("VCR OSD Mono", 48, FlxColor.WHITE, CENTER, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK); - titleTxt.updateHitbox(); - add(titleTxt); + var titleTxt:FlxText = new FlxText(5, 0, 0, (PauseSubState.daSelected == 'Skip Song') ? 'y u skip??' : 'RESULTS', 72); + titleTxt.scrollFactor.set(); + titleTxt.setFormat("VCR OSD Mono", 48, FlxColor.WHITE, CENTER, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK); + titleTxt.updateHitbox(); + add(titleTxt); } override function update(elapsed:Float) { - super.update(elapsed); - - if (controls.ACCEPT) { - if (PlayState.isStoryMode) - MusicBeatState.switchState(new StoryMenuState()); - else { - if (PlayState.inMini) { - inMini = false; - MusicBeatState.switchState(new MinigamesState()); - } else { - MusicBeatState.switchState(new FreeplayState()); - } + super.update(elapsed); + + if (controls.ACCEPT) { + if (PlayState.isStoryMode) + MusicBeatState.switchState(new StoryMenuState()); + else { + if (PlayState.inMini) { + inMini = false; + MusicBeatState.switchState(new MinigamesState()); + } else { + MusicBeatState.switchState(new FreeplayState()); + } } FlxG.sound.playMusic(Paths.music('freakyMenu')); - } } -} \ No newline at end of file + } +}