Skip to content

Commit

Permalink
[F] Repeat resets speed
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Oct 17, 2024
1 parent 0cab18b commit 91a1205
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 6 additions & 2 deletions AquaMai/Utils/PractiseMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions AquaMai/Utils/PractiseModeUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,17 @@ 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))
{
DebugFeature.Pause = !DebugFeature.Pause;
if (!DebugFeature.Pause)
{
PractiseMode.Seek(0);
PractiseMode.SetSpeedCoroutine();
}
}
else if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.B7) && PractiseMode.repeatStart == -1)
Expand Down

0 comments on commit 91a1205

Please sign in to comment.