Record original-alignment implementation and traceability checkpoint
Capture current source, content data, tests, asset licenses, and original-specification traceability. Original implementation remains incomplete. The accepted matching UI generation passed 154 suites and 12,253 checks, with eight rendered staff-contract screens reviewed. Latest native Windows and full-original acceptance remain outstanding.
This commit is contained in:
@@ -234,6 +234,7 @@ func _test_animation_pause_and_simulation_isolation() -> void:
|
||||
_preview.call("_gui_input", press)
|
||||
var drag := InputEventMouseMotion.new()
|
||||
drag.relative = Vector2(43, 27)
|
||||
drag.button_mask = MOUSE_BUTTON_MASK_MIDDLE
|
||||
_preview.call("_gui_input", drag)
|
||||
press.pressed = false
|
||||
_preview.call("_gui_input", press)
|
||||
@@ -242,6 +243,25 @@ func _test_animation_pause_and_simulation_isolation() -> void:
|
||||
"middle-button drag translates the visible room by the pointer movement")
|
||||
_click(moved_point)
|
||||
_expect(not _last_facility.is_empty(), "a room remains selectable immediately after dragging")
|
||||
_preview.set_pan_mode(true)
|
||||
_click(moved_point)
|
||||
_expect(_last_facility.is_empty() and _last_cell == null,
|
||||
"left drag in pan mode does not select or issue a placement click")
|
||||
drag.button_mask = MOUSE_BUTTON_MASK_LEFT
|
||||
_preview.call("_gui_input", drag)
|
||||
_expect(_preview.cell_to_canvas(cell).distance_to(moved_point + drag.relative) <= 2.0,
|
||||
"explicit pan mode moves the room with the left mouse button")
|
||||
var pan_before := _preview.pan_offset
|
||||
drag.button_mask = 0
|
||||
_preview.call("_gui_input", drag)
|
||||
_expect(_preview.pan_offset == pan_before and not bool(_preview.get("_dragging")),
|
||||
"returning after releasing outside the viewport does not leave a stuck drag")
|
||||
_click(_preview.cell_to_canvas(cell))
|
||||
_preview.notification(Control.NOTIFICATION_APPLICATION_FOCUS_OUT)
|
||||
_expect(not bool(_preview.get("_dragging")), "application focus loss cancels the camera drag")
|
||||
_preview.set_pan_mode(false)
|
||||
_click(_preview.cell_to_canvas(cell))
|
||||
_expect(not _last_facility.is_empty(), "leaving pan mode restores normal facility selection")
|
||||
_preview.reset_view()
|
||||
_expect(int(_clock.absolute_minute) == before_minute,
|
||||
"animation frames and camera input do not advance simulation minutes")
|
||||
|
||||
Reference in New Issue
Block a user