Skip to content

Commit

Permalink
Update ResultsSubState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Aug 26, 2023
1 parent e8f9228 commit 8edaf3c
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions source/meta/substate/ResultsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
}
}
}
}

0 comments on commit 8edaf3c

Please sign in to comment.