mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-26 18:20:42 +00:00
Fix: Timer for ui_click
This commit is contained in:
parent
5bd22da21b
commit
125a490aca
@ -84,6 +84,9 @@ class Timer:
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
confirm_timer.reset()
|
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.limit = limit
|
||||||
self.count = count
|
self.count = count
|
||||||
|
@ -30,7 +30,7 @@ class UI(ModuleBase):
|
|||||||
logger.hr('UI click')
|
logger.hr('UI click')
|
||||||
if appear_button is None:
|
if appear_button is None:
|
||||||
appear_button = click_button
|
appear_button = click_button
|
||||||
click_timer = Timer(retry_wait)
|
click_timer = Timer(retry_wait, count=6)
|
||||||
while 1:
|
while 1:
|
||||||
if skip_first_screenshot:
|
if skip_first_screenshot:
|
||||||
skip_first_screenshot = False
|
skip_first_screenshot = False
|
||||||
|
Loading…
Reference in New Issue
Block a user