1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-13 14:57:02 +08:00

Fix: Handle more accidental clicks in wait_until_walk_stable()

This commit is contained in:
LmeSzinc
2022-07-02 15:17:38 +08:00
parent 9b860b88bb
commit da78c647ae
3 changed files with 20 additions and 3 deletions

View File

@@ -12,13 +12,16 @@ SCROLL_STORAGE = Scroll(STORATE_SCROLL, color=(247, 211, 66))
class StorageHandler(GlobeOperation, ZoneManager):
def is_in_storage(self):
return self.appear(STORAGE_CHECK, offset=(20, 20))
def storage_enter(self):
"""
Pages:
in: is_in_map, STORAGE_ENTER
out: STORAGE_CHECK
"""
self.ui_click(STORAGE_ENTER, check_button=STORAGE_CHECK,
self.ui_click(STORAGE_ENTER, check_button=self.is_in_storage,
retry_wait=3, offset=(200, 5), skip_first_screenshot=True)
self.handle_info_bar()