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

Chore: Use new syntax sugar in os_handler

This commit is contained in:
LmeSzinc
2026-01-22 19:07:09 +08:00
parent 8ea89756f1
commit 475c2dd2bc
15 changed files with 135 additions and 445 deletions

View File

@@ -54,14 +54,8 @@ class PortHandler(OSShop):
skip_first_screenshot=True)
confirm_timer = Timer(1.5, count=3).start()
skip_first_screenshot = True
success = True
while 1:
if skip_first_screenshot:
skip_first_screenshot = False
else:
self.device.screenshot()
for _ in self.loop():
if self.appear_then_click(PORT_MISSION_ACCEPT, offset=(20, 20), interval=0.2):
confirm_timer.reset()
continue
@@ -110,14 +104,8 @@ class PortHandler(OSShop):
self.ui_click(PORT_GOTO_DOCK, appear_button=PORT_CHECK, check_button=PORT_DOCK_CHECK,
skip_first_screenshot=True)
skip_first_screenshot = True
repaired = False
while 1:
if skip_first_screenshot:
skip_first_screenshot = False
else:
self.device.screenshot()
for _ in self.loop():
# End
if self.info_bar_count():
break