[F] Need to press skip multiple time to exit photo edit while ExtendTimer is on

This commit is contained in:
Clansty
2024-05-26 10:11:29 +08:00
parent e55d17fd08
commit ef85156bae
2 changed files with 29 additions and 21 deletions

View File

@@ -1,4 +1,7 @@
using HarmonyLib;
using Manager;
using Monitor;
using Process;
namespace AquaMai.UX
{
@@ -10,5 +13,17 @@ namespace AquaMai.UX
{
second = 200;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(PhotoEditProcess), "MainMenuUpdate")]
public static void PhotoEditProcess(PhotoEditMonitor[] ____monitors, ProcessDataContainer ___container)
{
if (InputManager.GetButtonDown(0, InputManager.ButtonSetting.Button04))
{
___container.processManager.DecrementTime(0, 200);
SoundManager.PlaySE(Mai2.Mai2Cue.Cue.SE_SYS_SKIP, 0);
____monitors[0].SetButtonPressed(InputManager.ButtonSetting.Button04);
}
}
}
}