mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 15:23:33 +08:00
Fix: interval for equipment code buttons
This commit is contained in:
@@ -94,7 +94,7 @@ class EquipmentCodeHandler(StorageHandler):
|
|||||||
if self.appear(EQUIPMENT_CODE_PAGE_CHECK, threshold=10):
|
if self.appear(EQUIPMENT_CODE_PAGE_CHECK, threshold=10):
|
||||||
break
|
break
|
||||||
|
|
||||||
if self.appear_then_click(EQUIPMENT_CODE_ENTRANCE):
|
if self.appear_then_click(EQUIPMENT_CODE_ENTRANCE, interval=2):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# def exit_equip_code_page(self):
|
# def exit_equip_code_page(self):
|
||||||
@@ -160,7 +160,7 @@ class EquipmentCodeHandler(StorageHandler):
|
|||||||
logger.info('Confirm equipment preview cleared.')
|
logger.info('Confirm equipment preview cleared.')
|
||||||
break
|
break
|
||||||
|
|
||||||
if self.appear_then_click(EQUIPMENT_CODE_CLEAR):
|
if self.appear_then_click(EQUIPMENT_CODE_CLEAR, interval=2):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
def enter_equip_code_input_mode(self, skip_first_screenshot=True):
|
def enter_equip_code_input_mode(self, skip_first_screenshot=True):
|
||||||
@@ -170,7 +170,7 @@ class EquipmentCodeHandler(StorageHandler):
|
|||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
if self.appear(EQUIPMENT_CODE_ENTER):
|
if self.appear(EQUIPMENT_CODE_ENTER, interval=2):
|
||||||
self.device.click(EQUIPMENT_CODE_TEXTBOX)
|
self.device.click(EQUIPMENT_CODE_TEXTBOX)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user