mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-15 04:23:08 +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()
|
self.device.screenshot()
|
||||||
|
|
||||||
# End
|
# End
|
||||||
if self.appear(HELP_ENTER, offset=(30, 30)):
|
# sometimes you have help popup without black-blurred background
|
||||||
return True
|
# HELP_CONFIRM and HELP_ENTER appears
|
||||||
if self.appear(BEACON_REWARD, offset=(30, 30)):
|
if not self.appear(HELP_CONFIRM, offset=(30, 30)):
|
||||||
logger.info('META finished just after calling assist, ignore meta assist')
|
if self.appear(HELP_ENTER, offset=(30, 30)):
|
||||||
return False
|
return True
|
||||||
|
if self.appear(BEACON_REWARD, offset=(30, 30)):
|
||||||
|
logger.info('META finished just after calling assist, ignore meta assist')
|
||||||
|
return False
|
||||||
# Click
|
# Click
|
||||||
if self.appear_then_click(HELP_CONFIRM, offset=(30, 30), interval=3):
|
if self.appear_then_click(HELP_CONFIRM, offset=(30, 30), interval=3):
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user