From 763819cadeed05bc116f7e3833ea1e214dbb3029 Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Tue, 20 Jul 2021 15:38:18 -0700 Subject: [PATCH] done --- assets/sm/HOW TO ADD SM FILES.txt | 6 +++++- source/ResultsScreen.hx | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/sm/HOW TO ADD SM FILES.txt b/assets/sm/HOW TO ADD SM FILES.txt index 5eb12c3..b9fa864 100644 --- a/assets/sm/HOW TO ADD SM FILES.txt +++ b/assets/sm/HOW TO ADD SM FILES.txt @@ -1 +1,5 @@ -Put both the .sm and .ogg in the same folder and put the folder in this folder. Launch the game and go into freeplay, it'll load into the song list. \ No newline at end of file +Put both the .sm and .ogg in the same folder and put the folder in this folder. Launch the game and go into freeplay, it'll load into the song list. + +Limitations: +- You can only use songs that have one difficulty, so if a song has more than one. Remove all but the one you want to play. (it doesn't matter if it's challenge or what ever) +- The song must be a .ogg \ No newline at end of file diff --git a/source/ResultsScreen.hx b/source/ResultsScreen.hx index 10d5a60..17f417a 100644 --- a/source/ResultsScreen.hx +++ b/source/ResultsScreen.hx @@ -83,7 +83,7 @@ class ResultsScreen extends FlxSubState text.text = "Week Cleared!"; } - comboText = new FlxText(20,-75,0,'Judgements:\nSicks - ${PlayState.sicks}\nGoods - ${PlayState.goods}\nBads - ${PlayState.bads}\n\nCombo Breaks: ${(PlayState.isStoryMode ? PlayState.campaignMisses : PlayState.misses)}\nHighest Combo: ${PlayState.highestCombo + 1}\nScore: ${PlayState.instance.songScore}\nAccuracy: ${HelperFunctions.truncateFloat(PlayState.instance.accuracy,2)}%\n\n${Ratings.GenerateLetterRank(PlayState.instance.accuracy)}\n\nF1 - View replay\nF2 - Replay song + comboText = new FlxText(20,-75,0,'Judgements:\nSicks - ${PlayState.sicks}\nGoods - ${PlayState.goods}\nBads - ${PlayState.bads}\n\nCombo Breaks: ${(PlayState.isStoryMode ? PlayState.campaignMisses : PlayState.misses)}\nHighest Combo: ${PlayState.highestCombo + 1}\nScore: ${PlayState.instance.songScore}\nAccuracy: ${HelperFunctions.truncateFloat(PlayState.instance.accuracy,2)}%\n\n${Ratings.GenerateLetterRank(PlayState.instance.accuracy)}\n\n${!PlayState.loadRep ? "F1 - View replay\nF2 - Replay song" : ""}"; '); comboText.size = 28; comboText.setBorderStyle(FlxTextBorderStyle.OUTLINE,FlxColor.BLACK,4,1); @@ -209,7 +209,7 @@ class ResultsScreen extends FlxSubState FlxG.switchState(new FreeplayState()); } - if (FlxG.keys.justPressed.F1) + if (FlxG.keys.justPressed.F1 && !PlayState.loadRep) { trace(PlayState.rep.path); PlayState.rep = Replay.LoadReplay(PlayState.rep.path); @@ -279,7 +279,7 @@ class ResultsScreen extends FlxSubState LoadingState.loadAndSwitchState(new PlayState()); } - if (FlxG.keys.justPressed.F2 ) + if (FlxG.keys.justPressed.F2 && !PlayState.loadRep) { PlayState.rep = null;