1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00

Fix: storage ship select timeout

This commit is contained in:
sui-feng-cb 2025-08-21 01:17:47 +08:00
parent 0ebffe3a91
commit 510a175baa

View File

@ -240,7 +240,7 @@ class StorageHandler(GlobeOperation, ZoneManager):
""" """
crop_area = (button.area[0] + 80, button.area[1] - 25, button.area[2] + 2, button.area[3] - 10) crop_area = (button.area[0] + 80, button.area[1] - 25, button.area[2] + 2, button.area[3] - 10)
self.interval_clear(POPUP_CANCEL) self.interval_clear(POPUP_CANCEL)
self.device.stuck_record_clear() self.device.click_record_clear()
while 1: while 1:
if skip_first_screenshot: if skip_first_screenshot:
skip_first_screenshot = False skip_first_screenshot = False
@ -271,10 +271,8 @@ class StorageHandler(GlobeOperation, ZoneManager):
in: STORAGE_FLEET_CHOOSE in: STORAGE_FLEET_CHOOSE
out: STORAGE_FLEET_CHOOSE out: STORAGE_FLEET_CHOOSE
""" """
for _ in range(3): self.repair_ship_select(button)
if self.repair_ship_select(button):
self.repair_pack_use_confirm(button) self.repair_pack_use_confirm(button)
break
def storage_repair_cancel(self): def storage_repair_cancel(self):
self.ui_click(STORAGE_REPAIR_CANCEL, STORAGE_CHECK, retry_wait=2, skip_first_screenshot=True) self.ui_click(STORAGE_REPAIR_CANCEL, STORAGE_CHECK, retry_wait=2, skip_first_screenshot=True)