1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 03:58:22 +08:00

Upd: Campaign bonus drop screenshots

This commit is contained in:
LmeSzinc
2021-10-14 17:51:36 +08:00
parent 01d49bb752
commit fe99f712b2
3 changed files with 17 additions and 3 deletions

View File

@@ -187,8 +187,21 @@ class AutoSearchHandler(EnemySearchingHandler):
def handle_auto_search_continue(self):
return self.appear_then_click(AUTO_SEARCH_MENU_CONTINUE, offset=self._auto_search_menu_offset, interval=2)
def handle_auto_search_exit(self):
return self.appear_then_click(AUTO_SEARCH_MENU_EXIT, offset=self._auto_search_menu_offset, interval=2)
def handle_auto_search_exit(self, drop=None):
"""
Args:
drop (DropImage):
Returns:
bool
"""
if self.appear(AUTO_SEARCH_MENU_EXIT, offset=self._auto_search_menu_offset, interval=2):
if drop:
drop.handle_add(main=self)
self.device.click(AUTO_SEARCH_MENU_EXIT)
return True
else:
return False
def ensure_auto_search_exit(self, skip_first_screenshot=True):
"""