mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 14:27:00 +08:00
Opt: Faster port_enter and port_quit to meed Alas standard
This commit is contained in:
@@ -18,8 +18,7 @@ class PortHandler(OSShopHandler):
|
|||||||
"""
|
"""
|
||||||
self.ui_click(PORT_ENTER, check_button=PORT_CHECK, skip_first_screenshot=skip_first_screenshot)
|
self.ui_click(PORT_ENTER, check_button=PORT_CHECK, skip_first_screenshot=skip_first_screenshot)
|
||||||
# Buttons at the bottom has an animation to show
|
# Buttons at the bottom has an animation to show
|
||||||
self.device.sleep(0.3)
|
pass # Already ensured in ui_click
|
||||||
self.device.screenshot()
|
|
||||||
|
|
||||||
def port_quit(self, skip_first_screenshot=True):
|
def port_quit(self, skip_first_screenshot=True):
|
||||||
"""
|
"""
|
||||||
@@ -30,8 +29,7 @@ class PortHandler(OSShopHandler):
|
|||||||
self.ui_back(appear_button=PORT_CHECK, check_button=self.is_in_map,
|
self.ui_back(appear_button=PORT_CHECK, check_button=self.is_in_map,
|
||||||
skip_first_screenshot=skip_first_screenshot)
|
skip_first_screenshot=skip_first_screenshot)
|
||||||
# Buttons at the bottom has an animation to show
|
# Buttons at the bottom has an animation to show
|
||||||
self.device.sleep(0.3)
|
self.wait_os_map_buttons()
|
||||||
self.device.screenshot()
|
|
||||||
|
|
||||||
def port_mission_accept(self):
|
def port_mission_accept(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user