add: 增加了任务完成关闭游戏的功能

This commit is contained in:
DESKTOP-9PHO9TI\kenko
2022-06-26 00:36:49 +08:00
parent 2a769534d9
commit 90067a7ad7
14 changed files with 128 additions and 8 deletions

View File

@@ -109,6 +109,7 @@ namespace MeoAsstGui
ActionAfterCompletedList = new List<GenericCombData<ActionType>>
{
new GenericCombData<ActionType>{ Display="无动作",Value=ActionType.DoNothing },
new GenericCombData<ActionType>{ Display="退出 明日方舟",Value=ActionType.StopGame },
new GenericCombData<ActionType>{ Display="退出 MAA",Value=ActionType.ExitSelf },
new GenericCombData<ActionType>{ Display="关闭模拟器",Value=ActionType.ExitEmulator },
new GenericCombData<ActionType>{ Display="退出并关闭模拟器",Value=ActionType.ExitEmulatorAndSelf },
@@ -349,6 +350,11 @@ namespace MeoAsstGui
return;
}
if (ActionAfterCompleted == ActionType.StopGame)
{
ret &= asstProxy.AsstStartCloseDown();
}
ret &= asstProxy.AsstStart();
if (ret)
@@ -608,6 +614,7 @@ namespace MeoAsstGui
public enum ActionType
{
DoNothing,
StopGame,
ExitSelf,
ExitEmulator,
ExitEmulatorAndSelf,