mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-09 05:53:32 +08:00
Fix: Confirm dock select (fixed #1048)
This commit is contained in:
@@ -171,10 +171,13 @@ class Dock(Equipment):
|
|||||||
|
|
||||||
if self.appear(DOCK_CHECK, interval=2):
|
if self.appear(DOCK_CHECK, interval=2):
|
||||||
self.device.click(button)
|
self.device.click(button)
|
||||||
|
continue
|
||||||
|
if self.handle_popup_confirm('DOCK_SELECT'):
|
||||||
|
continue
|
||||||
|
|
||||||
if ocr_check_timer.reached():
|
if ocr_check_timer.reached():
|
||||||
ocr_check_timer.reset()
|
|
||||||
current, _, _ = OCR_DOCK_SELECTED.ocr(self.device.image)
|
current, _, _ = OCR_DOCK_SELECTED.ocr(self.device.image)
|
||||||
|
ocr_check_timer.reset()
|
||||||
if current > 0:
|
if current > 0:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user