forked from akanyan/mu3-mods
22 lines
596 B
C#
22 lines
596 B
C#
using MU3.Mod;
|
|
|
|
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(CustomRating.GetSuffix());
|
|
}
|
|
}
|
|
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;
|
|
}
|
|
}
|