1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-18 21:53:33 +08:00

Refactor: module/device, separate all screenshot method and control methods

- Better screenshot and control retries, handle common exceptions
This commit is contained in:
LmeSzinc
2022-01-21 22:50:02 +08:00
parent f4d798e3d7
commit 8374174d55
22 changed files with 1056 additions and 493 deletions

View File

@@ -33,8 +33,8 @@ class Equipment(UI):
while 1:
if not swipe_timer.started() or swipe_timer.reached():
swipe_timer.reset()
self.device.swipe(vector=(distance, 0), box=SWIPE_AREA.area, random_range=SWIPE_RANDOM_RANGE,
padding=0, duration=(0.1, 0.12), name='EQUIP_SWIPE')
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')
self.wait_until_appear(check_button)
swipe_count += 1