mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-11 07:07:27 +08:00
[F] Need to press skip multiple time to exit photo edit while ExtendTimer is on
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user