mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-18 02:11:29 +08:00
Fix: Handle RETIRE_EQUIP_CONFIRM during _equip_view_swipe()
This commit is contained in:
@@ -37,7 +37,18 @@ class Equipment(StorageHandler):
|
|||||||
swipe_timer.reset()
|
swipe_timer.reset()
|
||||||
self.device.swipe_vector(vector=(distance, 0), box=SWIPE_AREA.area, random_range=SWIPE_RANDOM_RANGE,
|
self.device.swipe_vector(vector=(distance, 0), box=SWIPE_AREA.area, random_range=SWIPE_RANDOM_RANGE,
|
||||||
padding=0, duration=(0.1, 0.12), name='EQUIP_SWIPE')
|
padding=0, duration=(0.1, 0.12), name='EQUIP_SWIPE')
|
||||||
self.wait_until_appear(check_button, offset=(30, 30))
|
# self.wait_until_appear(check_button, offset=(30, 30))
|
||||||
|
skip_first_screenshot = True
|
||||||
|
while 1:
|
||||||
|
if skip_first_screenshot:
|
||||||
|
skip_first_screenshot = False
|
||||||
|
else:
|
||||||
|
self.device.screenshot()
|
||||||
|
if self.appear(check_button, offset=(30, 30)):
|
||||||
|
break
|
||||||
|
if self.appear(RETIRE_EQUIP_CONFIRM, offset=(30, 30)):
|
||||||
|
logger.info('RETIRE_EQUIP_CONFIRM popup in _equip_view_swipe()')
|
||||||
|
return False
|
||||||
swipe_count += 1
|
swipe_count += 1
|
||||||
|
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|||||||
Reference in New Issue
Block a user