update tests: new scene API
This commit is contained in:
parent
f62362032e
commit
838da4571d
142 changed files with 616 additions and 601 deletions
|
|
@ -18,7 +18,7 @@ def run_test(runtime):
|
|||
mcrfpy.delTimer("test")
|
||||
|
||||
# Get the scene UI
|
||||
ui = mcrfpy.sceneUI("test")
|
||||
ui = test.children
|
||||
|
||||
# Test 1: Create circles with different parameters
|
||||
print("Test 1: Creating circles...")
|
||||
|
|
@ -121,8 +121,8 @@ def run_test(runtime):
|
|||
mcrfpy.setTimer("screenshot", take_screenshot, 50)
|
||||
|
||||
# Create a test scene
|
||||
mcrfpy.createScene("test")
|
||||
mcrfpy.setScene("test")
|
||||
test = mcrfpy.Scene("test")
|
||||
test.activate()
|
||||
|
||||
# Schedule test to run after game loop starts
|
||||
mcrfpy.setTimer("test", run_test, 50)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue