1
0
forked from akanyan/mu3-mods

feat(NaiveRating): make it togglable

This commit is contained in:
2024-07-07 23:47:46 +09:00
parent af15a4410a
commit b54b8676c1
13 changed files with 174 additions and 45 deletions

View File

@ -0,0 +1,18 @@
namespace MU3.CustomUI;
class patch_MU3UICounter: MU3UICounter {
protected extern void orig_calcNumFiguresFloat(double value);
protected new void calcNumFiguresFloat(double value) {
orig_calcNumFiguresFloat(value);
if(isDispSuffix) {
pushFigureFront(10);
}
}
public bool isDispSuffix { get; set; }
protected void pushFigureFront(byte c) {
for(int i = numFigures_; i > 0; --i) {
figures_[i] = figures_[i - 1];
}
figures_[0] = c;
numFigures_ += 1;
}
}