mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
@@ -1,3 +1,5 @@
|
||||
from datetime import datetime
|
||||
|
||||
from module.base.timer import Timer
|
||||
from module.combat.combat import Combat
|
||||
from module.handler.assets import *
|
||||
@@ -45,6 +47,7 @@ class LoginHandler(Combat):
|
||||
self.device.app_stop()
|
||||
self.device.app_start()
|
||||
self.handle_app_login()
|
||||
self.config.start_time = datetime.now()
|
||||
|
||||
def app_ensure_start(self):
|
||||
if not self.device.app_is_running():
|
||||
|
||||
@@ -51,8 +51,10 @@ class StrategyHandler(InfoHandler):
|
||||
self.device.screenshot()
|
||||
|
||||
formation.set(str(formation_index), main=self)
|
||||
if submarine_view.appear(main=self):
|
||||
submarine_view.set('on' if sub_view else 'off', main=self)
|
||||
# Disable this until the icon bug of submarine zone is fixed
|
||||
# And don't enable MAP_HAS_DYNAMIC_RED_BORDER when using submarine
|
||||
# if submarine_view.appear(main=self):
|
||||
# submarine_view.set('on' if sub_view else 'off', main=self)
|
||||
if submarine_hunt.appear(main=self):
|
||||
submarine_hunt.set('on' if sub_hunt else 'off', main=self)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user