Fix: Timer for ui_click

This commit is contained in:
LmeSzinc 2020-06-03 00:14:30 +08:00
parent 5bd22da21b
commit 125a490aca
2 changed files with 4 additions and 1 deletions

View File

@ -84,6 +84,9 @@ class Timer:
pass
else:
confirm_timer.reset()
Also, It's a good idea to set `count`, to make alas run more stable on slow computers.
Expected speed is 0.35 second / screenshot.
"""
self.limit = limit
self.count = count

View File

@ -30,7 +30,7 @@ class UI(ModuleBase):
logger.hr('UI click')
if appear_button is None:
appear_button = click_button
click_timer = Timer(retry_wait)
click_timer = Timer(retry_wait, count=6)
while 1:
if skip_first_screenshot:
skip_first_screenshot = False