forked from akanyan/mu3-mods
fix(MPO): custom rating display bug
This commit is contained in:
@ -12,7 +12,6 @@ class patch_ANM_CMN_UserDeta_01: ANM_CMN_UserDeta_01 {
|
||||
public extern void orig_setUserDetail();
|
||||
public new void setUserDetail() {
|
||||
orig_setUserDetail();
|
||||
|
||||
if(CustomRating.IsEnabled()) {
|
||||
var r = CustomRating.Get();
|
||||
rating.Counter = UserUtil.toRatingFloat(r);
|
||||
@ -20,6 +19,8 @@ class patch_ANM_CMN_UserDeta_01: ANM_CMN_UserDeta_01 {
|
||||
RatingColorID ratingColorIDFromRating = GameData.getRatingColorIDFromRating100(r);
|
||||
transform.Find("NUM_CMN_UserData_01/NUM_Rating").GetComponent<MU3UICounter>().SpriteIndex = (int)ratingColorIDFromRating;
|
||||
transform.Find("NUM_CMN_UserData_01/NUM_Rating/PAT_Header").GetComponent<MU3UIImageChanger>().patternNumber = (float)ratingColorIDFromRating;
|
||||
} else {
|
||||
rating.setForceDirty();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user