From 91a120599ffc8865f096d190ab4fd94ca81261d7 Mon Sep 17 00:00:00 2001 From: Clansty Date: Thu, 17 Oct 2024 16:52:46 +0800 Subject: [PATCH] [F] Repeat resets speed --- AquaMai/Utils/PractiseMode.cs | 8 ++++++-- AquaMai/Utils/PractiseModeUI.cs | 3 --- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/AquaMai/Utils/PractiseMode.cs b/AquaMai/Utils/PractiseMode.cs index 8070d108..f9370494 100644 --- a/AquaMai/Utils/PractiseMode.cs +++ b/AquaMai/Utils/PractiseMode.cs @@ -107,13 +107,17 @@ public static void Seek(int addMsec) msec = 0; } - DebugFeature.CurrentPlayMsec = msec; + CurrentPlayMsec = msec; } public static double CurrentPlayMsec { get => NotesManager.GetCurrentMsec() - 91; - set => DebugFeature.CurrentPlayMsec = value; + set + { + DebugFeature.CurrentPlayMsec = value; + SetSpeedCoroutine(); + } } public static PractiseModeUI ui; diff --git a/AquaMai/Utils/PractiseModeUI.cs b/AquaMai/Utils/PractiseModeUI.cs index b83b6971..e53c0f2f 100644 --- a/AquaMai/Utils/PractiseModeUI.cs +++ b/AquaMai/Utils/PractiseModeUI.cs @@ -91,12 +91,10 @@ public void Update() if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.E8)) { PractiseMode.Seek(-1000); - PractiseMode.SetSpeedCoroutine(); } else if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.E2)) { PractiseMode.Seek(1000); - PractiseMode.SetSpeedCoroutine(); } else if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.B8) || InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.B1)) { @@ -104,7 +102,6 @@ public void Update() if (!DebugFeature.Pause) { PractiseMode.Seek(0); - PractiseMode.SetSpeedCoroutine(); } } else if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.B7) && PractiseMode.repeatStart == -1)