mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-30 16:43:28 +08:00
Fix: match_binary in idle page for various background
This commit is contained in:
@@ -535,10 +535,12 @@ class UI(InfoHandler):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
# Idle page
|
# Idle page
|
||||||
if self.appear(IDLE, offset=(5, 5), interval=5):
|
if self.get_interval_timer(IDLE, interval=3).reached():
|
||||||
logger.info(f'UI additional: {IDLE} -> {REWARD_GOTO_MAIN}')
|
if IDLE.match_binary(self.device.image, offset=(5, 5)):
|
||||||
self.device.click(REWARD_GOTO_MAIN)
|
logger.info(f'UI additional: {IDLE} -> {REWARD_GOTO_MAIN}')
|
||||||
return True
|
self.device.click(REWARD_GOTO_MAIN)
|
||||||
|
self.get_interval_timer(IDLE).reset()
|
||||||
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user