1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 08:38:20 +08:00

Add: Support of touch method for MAA

This commit is contained in:
SarContDeli
2022-12-27 17:48:33 +08:00
parent 1f8d32de06
commit 1dc28e253d
11 changed files with 139 additions and 46 deletions

View File

@@ -80,6 +80,14 @@ class ArknightsAutoScript(AzurLaneAutoScript):
ArknightsAutoScript.callback = callback
asst = AssistantHandler.Asst(callback)
asst.set_instance_option(AssistantHandler.InstanceOptionType.touch_type, self.config.MaaEmulator_TouchMethod)
if self.config.MaaEmulator_DeploymentWithPause:
if self.config.MaaEmulator_TouchMethod == 'maatouch':
asst.set_instance_option(AssistantHandler.InstanceOptionType.deployment_with_pause, '1')
else:
logger.critical('使用了不支持自动下干员的触控方案')
raise RequestHumanTakeover
return asst
def maa_startup(self):