mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 10:27:21 +08:00
Fix: Clicking outside of screen in GOTO_MAIN
This commit is contained in:
@@ -278,19 +278,19 @@ class UI(InfoHandler):
|
|||||||
if self.appear_then_click(LOGIN_RETURN_SIGN, offset=(30, 30), interval=3):
|
if self.appear_then_click(LOGIN_RETURN_SIGN, offset=(30, 30), interval=3):
|
||||||
return True
|
return True
|
||||||
if self.appear(EVENT_LIST_CHECK, offset=(30, 30), interval=3):
|
if self.appear(EVENT_LIST_CHECK, offset=(30, 30), interval=3):
|
||||||
self.device.click(GOTO_MAIN)
|
if self.appear_then_click(GOTO_MAIN, offset=(30, 30)):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# Mistaken click
|
# Mistaken click
|
||||||
if self.appear(PLAYER_CHECK, offset=(30, 30), interval=3):
|
if self.appear(PLAYER_CHECK, offset=(30, 30), interval=3):
|
||||||
self.device.click(GOTO_MAIN)
|
if self.appear_then_click(GOTO_MAIN, offset=(30, 30)):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# Game tips
|
# Game tips
|
||||||
# Event commission in Vacation Lane.
|
# Event commission in Vacation Lane.
|
||||||
if self.appear(GAME_TIPS, offset=(30, 30), interval=3):
|
if self.appear(GAME_TIPS, offset=(30, 30), interval=3):
|
||||||
self.device.click(GOTO_MAIN)
|
if self.appear_then_click(GOTO_MAIN, offset=(30, 30)):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# Dorm popup
|
# Dorm popup
|
||||||
if self.appear_then_click(DORM_INFO, offset=(30, 30), interval=3):
|
if self.appear_then_click(DORM_INFO, offset=(30, 30), interval=3):
|
||||||
|
|||||||
Reference in New Issue
Block a user