mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
add: 增加了任务完成关闭游戏的功能
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user