mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 02:48:23 +08:00
Fix: Handle help popup without black-blurred background
This commit is contained in:
@@ -313,11 +313,14 @@ class OpsiAshBeacon(Meta):
|
||||
self.device.screenshot()
|
||||
|
||||
# End
|
||||
if self.appear(HELP_ENTER, offset=(30, 30)):
|
||||
return True
|
||||
if self.appear(BEACON_REWARD, offset=(30, 30)):
|
||||
logger.info('META finished just after calling assist, ignore meta assist')
|
||||
return False
|
||||
# sometimes you have help popup without black-blurred background
|
||||
# HELP_CONFIRM and HELP_ENTER appears
|
||||
if not self.appear(HELP_CONFIRM, offset=(30, 30)):
|
||||
if self.appear(HELP_ENTER, offset=(30, 30)):
|
||||
return True
|
||||
if self.appear(BEACON_REWARD, offset=(30, 30)):
|
||||
logger.info('META finished just after calling assist, ignore meta assist')
|
||||
return False
|
||||
# Click
|
||||
if self.appear_then_click(HELP_CONFIRM, offset=(30, 30), interval=3):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user