mirror of
https://github.com/Cuteminded/jellyframe.git
synced 2026-10-17 15:00:30 +02:00
This change replaces the old playback button strip with a transparent overlay attached to the movie screen. It adds a seekable timeline, duration reporting, and proper seek routing for resumed/transcoded streams while preserving paused state and overlay behavior across settings and recenter actions. Pointer and scroll handling were also hardened to improve controller input stability, including hover tracking, exit handling, aim smoothing, and synthetic wheel release events. Regression tests and testing notes were extended to cover overlay toggling, timeline formatting, seek flows, recenter behavior, and pointer/scroll edge cases.
28 lines
853 B
GDScript
28 lines
853 B
GDScript
extends SceneTree
|
|
|
|
func _initialize() -> void:
|
|
call_deferred("capture")
|
|
|
|
func capture() -> void:
|
|
var app: Node = load("res://scenes/main.tscn").instantiate()
|
|
root.add_child(app)
|
|
var desktop_container: Node = app.viewport.get_parent()
|
|
app.viewport.reparent(app)
|
|
desktop_container.hide()
|
|
app.settings.distance = 1.5
|
|
app.settings.curvature = 1.2
|
|
app._position_screen()
|
|
app._resize_screen()
|
|
app.screen.show()
|
|
var material := StandardMaterial3D.new()
|
|
material.shading_mode = BaseMaterial3D.SHADING_MODE_UNSHADED
|
|
material.cull_mode = BaseMaterial3D.CULL_DISABLED
|
|
material.albedo_color = Color("876143")
|
|
app.screen.material_override = material
|
|
app._screen_settings()
|
|
app.panel.show()
|
|
await create_timer(0.5).timeout
|
|
await RenderingServer.frame_post_draw
|
|
root.get_texture().get_image().save_png("res://dist/menu-depth-preview.png")
|
|
quit()
|