From fa77122877ad915df2d3bbee997ac8251734104a Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Wed, 4 Aug 2021 15:23:47 -0700 Subject: [PATCH] re add start section and result screen clean --- source/ChartingState.hx | 10 ++++++++++ source/ResultsScreen.hx | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/source/ChartingState.hx b/source/ChartingState.hx index e3a8bd7..bd4a4b9 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -1256,7 +1256,17 @@ class ChartingState extends MusicBeatState check_altAnim.checked = section.altAnim; }); + var startSection:FlxButton = new FlxButton(10, 85, "Play Here", function() { + PlayState.SONG = _song; + FlxG.sound.music.stop(); + if (!PlayState.isSM) + vocals.stop(); + PlayState.startTime = lastUpdatedSection.startTime; + LoadingState.loadAndSwitchState(new PlayState()); + }); + tab_group_section.add(refresh); + tab_group_section.add(startSection); tab_group_section.add(stepperCopy); tab_group_section.add(stepperCopyLabel); tab_group_section.add(check_mustHitSection); diff --git a/source/ResultsScreen.hx b/source/ResultsScreen.hx index be8371e..109af32 100644 --- a/source/ResultsScreen.hx +++ b/source/ResultsScreen.hx @@ -145,6 +145,11 @@ class ResultsScreen extends FlxSubState graph.addToHistory(diff, judge, obj3); } + if (sicks == Math.POSITIVE_INFINITY || sicks == Math.NaN) + sicks = 0; + if (goods == Math.POSITIVE_INFINITY || goods == Math.NaN) + goods = 0; + graph.update(); mean = HelperFunctions.truncateFloat(mean / PlayState.rep.replay.songNotes.length,2);