mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-23 00:52:22 +00:00
Fix: Timer for ui_click
This commit is contained in:
parent
5bd22da21b
commit
125a490aca
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user