forked from akanyan/mu3-mods
feat(MPO): implement TYPE-D
This commit is contained in:
@ -28,9 +28,8 @@ class patch_UIResultBattlePoint: UIResultBattlePoint {
|
||||
int prevRating = ((patch_SessionResult)playInfo.sessionResult).prevCustomRating;
|
||||
int rating1 = CustomRating.Get();
|
||||
|
||||
if((bool)hideScore_) {
|
||||
hideScore_.SetActive(false);
|
||||
}
|
||||
hideScore_?.SetActive(false);
|
||||
counterScore_.isDispSuffix = true;
|
||||
counterScore_.Counter = (double)UserUtil.toRatingFloat(rating1);
|
||||
int ratingPatternNo = UserUtil.toRatingPatternNo(rating1);
|
||||
counterScore_.SpriteIndex = ratingPatternNo;
|
||||
@ -42,10 +41,16 @@ class patch_UIResultBattlePoint: UIResultBattlePoint {
|
||||
animator_.SetInteger(Sys.Const.AnimatorID_State, 2);
|
||||
} else if(0 < rating2) {
|
||||
disable(counterScoreMinus_);
|
||||
if((bool)counterScorePlus_) {
|
||||
if(counterScorePlus_ != null) {
|
||||
counterScorePlus_.Counter = rating2 * 0.01f + 1E-05f;
|
||||
}
|
||||
animator_.SetInteger(Sys.Const.AnimatorID_State, 0);
|
||||
} else {
|
||||
disable(counterScorePlus_);
|
||||
if(counterScoreMinus_ != null) {
|
||||
counterScoreMinus_.Counter = rating2 * 0.01f + 1E-05f;
|
||||
}
|
||||
animator_.SetInteger(MU3.Sys.Const.AnimatorID_State, 1);
|
||||
}
|
||||
animator_.SetTrigger(Sys.Const.AnimatorID_In);
|
||||
}
|
||||
|
Reference in New Issue
Block a user