Skip to content
This repository was archived by the owner on Aug 29, 2022. It is now read-only.

Commit 303a407

Browse files
committed
optimization
1 parent e042c28 commit 303a407

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

source/PlayState.hx

+14-5
Original file line numberDiff line numberDiff line change
@@ -2462,16 +2462,25 @@ class PlayState extends MusicBeatState
24622462

24632463
super.update(elapsed);
24642464

2465-
2466-
if(ratingName == '?') {
2467-
scoreTxt.text = 'Score: ' + songScore + ' | Misses: ' + songMisses + ' | Average: ?' + ' | Rating: ' + ratingName;
2465+
if (ClientPrefs.scoreposition == "New") {
2466+
if(ratingName == '?') {
2467+
scoreTxt.text = 'Score: ' + songScore + '\nMisses: ' + songMisses + '\nAverage: ?' + '\nRating: ' + ratingName;
2468+
} else {
2469+
scoreTxt.text = 'Score: ' + songScore + '\nMisses: ' + songMisses + '\nAverage: ' + Math.round(averageMs) + 'ms' + '\nRating: ' + ratingName + ' (' + Highscore.floorDecimal(ratingPercent * 100, 2) + '%)' + ' - ' + ratingFC;//peeps wanted no integer rating
2470+
}
24682471
} else {
2469-
scoreTxt.text = 'Score: ' + songScore + ' | Misses: ' + songMisses + ' | Average: ' + Math.round(averageMs) + 'ms' + ' | Rating: ' + ratingName + ' (' + Highscore.floorDecimal(ratingPercent * 100, 2) + '%)' + ' - ' + ratingFC;//peeps wanted no integer rating
2472+
if(ratingName == '?') {
2473+
scoreTxt.text = 'Score: ' + songScore + ' | Misses: ' + songMisses + ' | Average: ?' + ' | Rating: ' + ratingName;
2474+
} else {
2475+
scoreTxt.text = 'Score: ' + songScore + ' | Misses: ' + songMisses + ' | Average: ' + Math.round(averageMs) + 'ms' + ' | Rating: ' + ratingName + ' (' + Highscore.floorDecimal(ratingPercent * 100, 2) + '%)' + ' - ' + ratingFC;//peeps wanted no integer rating
2476+
}
24702477
}
24712478

2479+
/*
24722480
if (ClientPrefs.scoreposition == "New") {
2473-
scoreTxt.text = scoreTxt.text.replace(' | ', '\n');
2481+
scoreTxt.text = scoreTxt.text.replace(' | ', '\n'); // REPLACE IS STUPID. IT EATS LITERALLY 9999999999999999999999999999999999999999999999999 RAM
24742482
}
2483+
*/
24752484

24762485
if(botplayTxt.visible) {
24772486
botplaySine += 180 * elapsed;

0 commit comments

Comments
 (0)