From af00677e26b071bf1ae52b6e9b694b63a23ead8d Mon Sep 17 00:00:00 2001 From: akanyan Date: Sun, 22 Dec 2024 19:23:12 +0000 Subject: [PATCH] fix(PlatScore): show on all charts Probably fixes setting presets other than custom. No one tested those. --- .../PlatinumTiming/MU3/patch_UIResultTechScore.cs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Extras/PlatinumTiming/MU3/patch_UIResultTechScore.cs b/Extras/PlatinumTiming/MU3/patch_UIResultTechScore.cs index 4f3b4d8..f128f4f 100644 --- a/Extras/PlatinumTiming/MU3/patch_UIResultTechScore.cs +++ b/Extras/PlatinumTiming/MU3/patch_UIResultTechScore.cs @@ -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(); } }