forked from akanyan/mu3-mods
fix(MPO): custom rating display bug
This commit is contained in:
@ -1,14 +1,13 @@
|
||||
using MU3.User;
|
||||
using MonoMod;
|
||||
|
||||
namespace MU3.CustomUI;
|
||||
|
||||
class patch_MU3UICounter: MU3UICounter {
|
||||
public void SetRating(int value, byte suffix) {
|
||||
Counter = UserUtil.toRatingFloat(value);
|
||||
AddSuffix(suffix);
|
||||
}
|
||||
[MonoModIgnore]
|
||||
private extern void updatePosition();
|
||||
|
||||
public void AddSuffix(byte c) {
|
||||
updatePosition();
|
||||
for(int i = numFigures_; i > 0; --i) {
|
||||
figures_[i] = figures_[i - 1];
|
||||
}
|
||||
|
Reference in New Issue
Block a user