The Move dialog gets the same canvas value box as the other dialogs: X for translating moves, the angle for Rotate, placed clear of the triad.
18 lines
884 B
JSON
18 lines
884 B
JSON
[
|
|
{"note": "The Move window's value box on the canvas. Picking a body gives it the keyboard, so a typed number sets the move without hunting for a field first. Which value the box reads follows the move type, covered by dialogs_move_tests."},
|
|
{"call": "engine.execute", "params": {"command": "solid.box", "params": {"length": 20, "width": 20, "height": 20}}},
|
|
{"call": "ui.view", "params": {"view": "iso"}},
|
|
|
|
{"note": "Free Move: pick the body, type 30, press Enter. Nothing is clicked in the window at all."},
|
|
{"start": "solid.move"},
|
|
{"click": {"world": [10, 10, 20]}},
|
|
{"expect": {"dialog": "Move", "bodies": 1}},
|
|
{"text": "30"},
|
|
{"expect": {"dialog": "x: \"30\""}},
|
|
{"key": "Enter"},
|
|
{"expect": {"dialog": null, "errors": 0, "bodies": 1}},
|
|
{"expect": {"bbox": {"body": "Body1", "min": [30, 0, 0], "max": [50, 20, 20]}}},
|
|
|
|
{"shot": "move_canvas_value"}
|
|
]
|