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

Merge branch 'master' of LmeSzinc

This commit is contained in:
2024-06-28 14:40:37 +08:00
43 changed files with 121 additions and 380 deletions

View File

@@ -79,17 +79,11 @@ class PortHandler(OSShop):
self.ui_back(appear_button=PORT_MISSION_CHECK, check_button=PORT_CHECK, skip_first_screenshot=True)
return success
def port_supply_buy(self):
def port_shop_enter(self):
"""
Buy supply in port.
Returns:
bool: True if success to buy any or no items found.
False if not enough coins to buy any.
Pages:
in: PORT_CHECK
out: PORT_CHECK
out: PORT_SUPPLY_CHECK
"""
self.ui_click(PORT_GOTO_SUPPLY, appear_button=PORT_CHECK, check_button=PORT_SUPPLY_CHECK,
skip_first_screenshot=True)
@@ -97,10 +91,13 @@ class PortHandler(OSShop):
self.device.sleep(0.5)
self.device.screenshot()
success = self.handle_port_supply_buy()
def port_shop_quit(self):
"""
Pages:
in: PORT_SUPPLY_CHECK
out: PORT_CHECK
"""
self.ui_back(appear_button=PORT_SUPPLY_CHECK, check_button=PORT_CHECK, skip_first_screenshot=True)
return success
def port_dock_repair(self):
"""