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

Fix: interval for equipment code buttons

This commit is contained in:
sui-feng-cb 2024-12-10 16:14:46 +08:00
parent d7242b17f7
commit e24b5a4b2c

View File

@ -94,7 +94,7 @@ class EquipmentCodeHandler(StorageHandler):
if self.appear(EQUIPMENT_CODE_PAGE_CHECK, threshold=10):
break
if self.appear_then_click(EQUIPMENT_CODE_ENTRANCE):
if self.appear_then_click(EQUIPMENT_CODE_ENTRANCE, interval=2):
continue
# def exit_equip_code_page(self):
@ -160,7 +160,7 @@ class EquipmentCodeHandler(StorageHandler):
logger.info('Confirm equipment preview cleared.')
break
if self.appear_then_click(EQUIPMENT_CODE_CLEAR):
if self.appear_then_click(EQUIPMENT_CODE_CLEAR, interval=2):
continue
def enter_equip_code_input_mode(self, skip_first_screenshot=True):
@ -170,7 +170,7 @@ class EquipmentCodeHandler(StorageHandler):
else:
self.device.screenshot()
if self.appear(EQUIPMENT_CODE_ENTER):
if self.appear(EQUIPMENT_CODE_ENTER, interval=2):
self.device.click(EQUIPMENT_CODE_TEXTBOX)
continue