Timer overhaul: update tests
This commit is contained in:
parent
5d41292bf6
commit
cec76b63dc
78 changed files with 521 additions and 495 deletions
|
|
@ -135,7 +135,7 @@ class GeometryDemoRunner:
|
|||
self.current_index = 0
|
||||
self.render_wait = 0
|
||||
|
||||
def screenshot_cycle(runtime):
|
||||
def screenshot_cycle(timer, runtime):
|
||||
if self.render_wait == 0:
|
||||
if self.current_index >= len(self.screens):
|
||||
print("Done!")
|
||||
|
|
@ -162,7 +162,7 @@ class GeometryDemoRunner:
|
|||
print("Done!")
|
||||
sys.exit(0)
|
||||
|
||||
mcrfpy.setTimer("screenshot", screenshot_cycle, 100)
|
||||
self.screenshot_timer = mcrfpy.Timer("screenshot", screenshot_cycle, 100)
|
||||
|
||||
def run_interactive(self):
|
||||
"""Run in interactive mode with menu."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue