mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-24 04:25:56 +08:00
Fix: Expand search area of MISSION_MULTI and MISSION_SINGLE
This commit is contained in:
@@ -103,7 +103,7 @@ class Reward(UI):
|
|||||||
for button in [MISSION_MULTI, MISSION_SINGLE]:
|
for button in [MISSION_MULTI, MISSION_SINGLE]:
|
||||||
if not click_timer.reached():
|
if not click_timer.reached():
|
||||||
continue
|
continue
|
||||||
if self.appear(button, offset=(0, 200), interval=interval) \
|
if self.appear(button, offset=(20, 200), interval=interval) \
|
||||||
and button.match_appear_on(self.device.image):
|
and button.match_appear_on(self.device.image):
|
||||||
self.device.click(button)
|
self.device.click(button)
|
||||||
exit_timer.reset()
|
exit_timer.reset()
|
||||||
@@ -160,8 +160,8 @@ class Reward(UI):
|
|||||||
"""
|
"""
|
||||||
self.reward_side_navbar_ensure(upper=1)
|
self.reward_side_navbar_ensure(upper=1)
|
||||||
|
|
||||||
if not self.appear(MISSION_MULTI) and \
|
if not self.appear(MISSION_MULTI, offset=(20, 200)) and \
|
||||||
not self.appear(MISSION_SINGLE):
|
not self.appear(MISSION_SINGLE, offset=(20, 200)):
|
||||||
logger.info('No MISSION_MULTI or MISSION_SINGLE')
|
logger.info('No MISSION_MULTI or MISSION_SINGLE')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user