mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 06:18:21 +08:00
Fix: Continuous click in research_queue_add() on slow PCs
This commit is contained in:
@@ -25,15 +25,16 @@ class ResearchQueue(ResearchUI):
|
||||
else:
|
||||
self.device.screenshot()
|
||||
|
||||
if self.appear_then_click(RESEARCH_QUEUE_ADD, offset=(20, 20), interval=3):
|
||||
continue
|
||||
if self.handle_popup_confirm('RESEARCH_QUEUE'):
|
||||
continue
|
||||
|
||||
# End
|
||||
if self.is_in_research() and 'detail' in self.get_research_status(self.device.image):
|
||||
break
|
||||
|
||||
if self.appear_then_click(RESEARCH_QUEUE_ADD, offset=(20, 20), interval=5):
|
||||
continue
|
||||
if self.handle_popup_confirm('RESEARCH_QUEUE'):
|
||||
self.interval_reset(RESEARCH_QUEUE_ADD)
|
||||
continue
|
||||
|
||||
self.ensure_research_center_stable()
|
||||
|
||||
@cached_property
|
||||
|
||||
Reference in New Issue
Block a user