1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-29 17:58:23 +08:00

Merge pull request #1401 from LmeSzinc/bug_fix

Bug fix
This commit is contained in:
LmeSzinc
2022-07-22 15:52:58 +08:00
committed by GitHub

View File

@@ -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
@@ -52,7 +53,7 @@ class ResearchQueue(ResearchUI):
Status icons on the left
"""
return ButtonGrid(
origin=(8, 259), delta=(0, 40.5), button_shape=(25, 25), grid_shape=(1, 5), name='QUEUE_STATUS')
origin=(18, 259), delta=(0, 40.5), button_shape=(25, 25), grid_shape=(1, 5), name='QUEUE_STATUS')
@cached_property
@Config.when(SERVER=None)