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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user