1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-18 19:33:33 +08:00

Fix: Zone names have been hidden in safe zones

This commit is contained in:
LmeSzinc
2021-12-09 22:50:18 +08:00
parent 950e772b20
commit d53ac9afad
4 changed files with 58 additions and 12 deletions

View File

@@ -223,8 +223,12 @@ class GlobeOperation(ActionPointHandler, MapEventHandler):
return self.ui_click(GLOBE_GOTO_MAP, check_button=self.is_in_map, offset=(200, 5),
skip_first_screenshot=skip_first_screenshot)
def os_map_goto_globe(self, skip_first_screenshot=True):
def os_map_goto_globe(self, unpin=True, skip_first_screenshot=True):
"""
Args:
unpin (bool):
skip_first_screenshot (bool):
Pages:
in: is_in_map
out: is_in_globe
@@ -248,11 +252,15 @@ class GlobeOperation(ActionPointHandler, MapEventHandler):
else:
self.device.screenshot()
if self.handle_zone_pinned():
unpinned += 1
confirm_timer.reset()
if unpin:
if self.handle_zone_pinned():
unpinned += 1
confirm_timer.reset()
else:
if unpinned and confirm_timer.reached():
break
else:
if unpinned and confirm_timer.reached():
if self.is_zone_pinned():
break
def globe_enter(self, zone, skip_first_screenshot=True):