1
0
forked from akanyan/mu3-mods

fix(PlatScore): show on all charts

Probably fixes setting presets other than custom.
No one tested those.
This commit is contained in:
2024-12-22 19:23:12 +00:00
parent f65bc70dca
commit af00677e26

View File

@ -2,7 +2,6 @@
using MU3.Game;
using MU3.Sequence;
using MU3.Util;
using System.Collections;
using UnityEngine;
namespace MU3;
@ -10,8 +9,7 @@ namespace MU3;
class patch_UIResultTechScore: UIResultTechScore {
private MU3UICounter counterFast_;
private MU3UICounter counterLate_;
private Animator animator_;
private static readonly int State_TechnicalScore_Loop;
private void cloneCounter(MU3UICounter counter, Color color, int value) {
var otherValue = counter.CounterAsInt;
var offset = 12;
@ -52,13 +50,9 @@ class patch_UIResultTechScore: UIResultTechScore {
);
}
private extern IEnumerator orig_showPlatinumScore(PlayInfo playInfo);
private IEnumerator showPlatinumScore(PlayInfo playInfo) {
StartCoroutine(orig_showPlatinumScore(playInfo));
while(!AnimatorState.stateEquals(animator_, State_TechnicalScore_Loop)) {
yield return null;
}
private extern void orig_drawTimingInclination(int numNotesFast, int numNotesLate);
private void drawTimingInclination(int numNotesFast, int numNotesLate) {
orig_drawTimingInclination(numNotesFast, numNotesLate);
drawCounters();
}
}