File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1235,8 +1235,15 @@ class PlayState extends MusicBeatState
12351235 accFormat .format .color = curRating .color ;
12361236 accuracyTxt .text = ' Accuracy: ${accuracy < 0 ? " -%" : ' ${CoolUtil .quantize (accuracy * 100 , 100 )}%' } - ${curRating .rating }' ;
12371237
1238- accuracyTxt ._formatRanges [0 ].range .start = accuracyTxt .text .length - curRating .rating .length ;
1239- accuracyTxt ._formatRanges [0 ].range .end = accuracyTxt .text .length ;
1238+ var formatIndex : Int = - 1 ;
1239+ for (i => frmtRange in accuracyTxt ._formatRanges ) if (frmtRange .format == accFormat ) {
1240+ formatIndex = i ;
1241+ break ;
1242+ }
1243+ if (formatIndex > - 1 ) {
1244+ accuracyTxt ._formatRanges [formatIndex ].range .start = accuracyTxt .text .length - curRating .rating .length ;
1245+ accuracyTxt ._formatRanges [formatIndex ].range .end = accuracyTxt .text .length ;
1246+ }
12401247 }
12411248 }
12421249
You can’t perform that action at this time.
0 commit comments