forked from akanyan/mu3-mods
fix(MPO): custom rating display bug
This commit is contained in:
@ -4,6 +4,7 @@ using MU3.Game;
|
||||
using MU3.Mod;
|
||||
using MU3.Sequence;
|
||||
using MU3.User;
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MU3;
|
||||
@ -33,8 +34,9 @@ class patch_UIResultBattlePoint: UIResultBattlePoint {
|
||||
counterScore_.Counter = (double)UserUtil.toRatingFloat(rating1);
|
||||
int ratingPatternNo = UserUtil.toRatingPatternNo(rating1);
|
||||
counterScore_.SpriteIndex = ratingPatternNo;
|
||||
StartCoroutine(addSuffix());
|
||||
|
||||
imageHeader_.patternNumber = ratingPatternNo;
|
||||
counterScore_.AddSuffix(CustomRating.GetSuffix());
|
||||
int rating2 = rating1 - prevRating;
|
||||
if(rating2 == 0) {
|
||||
disable(counterScorePlus_);
|
||||
@ -55,4 +57,9 @@ class patch_UIResultBattlePoint: UIResultBattlePoint {
|
||||
}
|
||||
animator_.SetTrigger(Sys.Const.AnimatorID_In);
|
||||
}
|
||||
|
||||
private IEnumerator addSuffix() {
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
counterScore_.AddSuffix(CustomRating.GetSuffix());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user