fix: reparent dashboard before freeing splash; double text size with dramatic zoom
This commit is contained in:
parent
6d64c7ea15
commit
932e7b660c
2 changed files with 13 additions and 10 deletions
|
|
@ -11,7 +11,7 @@ func _ready() -> void:
|
|||
|
||||
# Initial state: hidden text container, black overlay
|
||||
text_container.modulate = Color(1, 1, 1, 0)
|
||||
text_container.scale = Vector2(0.25, 0.25)
|
||||
text_container.scale = Vector2(0.05, 0.05)
|
||||
transition_overlay.color = Color(0, 0, 0, 1)
|
||||
|
||||
# Let the layout settle
|
||||
|
|
@ -23,11 +23,11 @@ func _ready() -> void:
|
|||
reveal.tween_property(transition_overlay, "color", Color(0, 0, 0, 0), 0.4)
|
||||
await reveal.finished
|
||||
|
||||
# Phase 1: Zoom in and fade in
|
||||
# Phase 1: Dramatic zoom in + fade in
|
||||
var zoom_in := create_tween()
|
||||
zoom_in.set_parallel(true)
|
||||
zoom_in.tween_property(text_container, "modulate", Color(1, 1, 1, 1), 1.5).set_ease(Tween.EASE_OUT)
|
||||
zoom_in.tween_property(text_container, "scale", Vector2(1.0, 1.0), 1.8).set_ease(Tween.EASE_OUT).set_trans(Tween.TRANS_CUBIC)
|
||||
zoom_in.tween_property(text_container, "modulate", Color(1, 1, 1, 1), 1.8).set_ease(Tween.EASE_OUT)
|
||||
zoom_in.tween_property(text_container, "scale", Vector2(1.0, 1.0), 2.0).set_ease(Tween.EASE_OUT).set_trans(Tween.TRANS_BACK)
|
||||
await zoom_in.finished
|
||||
|
||||
# Phase 2: Hold
|
||||
|
|
@ -35,12 +35,12 @@ func _ready() -> void:
|
|||
|
||||
# Phase 3: Fade out
|
||||
var fade_out := create_tween()
|
||||
fade_out.tween_property(text_container, "modulate", Color(1, 1, 1, 0), 1.0).set_ease(Tween.EASE_IN)
|
||||
fade_out.tween_property(text_container, "modulate", Color(1, 1, 1, 0), 0.8).set_ease(Tween.EASE_IN)
|
||||
await fade_out.finished
|
||||
|
||||
# Phase 4: Crossfade to dashboard
|
||||
var to_black := create_tween()
|
||||
to_black.tween_property(transition_overlay, "color", Color(0, 0, 0, 1), 0.4)
|
||||
to_black.tween_property(transition_overlay, "color", Color(0, 0, 0, 1), 0.3)
|
||||
await to_black.finished
|
||||
|
||||
var dashboard := preload("res://scenes/dashboard.tscn").instantiate()
|
||||
|
|
@ -50,4 +50,7 @@ func _ready() -> void:
|
|||
from_black.tween_property(transition_overlay, "color", Color(0, 0, 0, 0), 0.6)
|
||||
await from_black.finished
|
||||
|
||||
# Reparent dashboard to scene root so it survives splash's queue_free
|
||||
remove_child(dashboard)
|
||||
get_tree().root.add_child(dashboard)
|
||||
queue_free()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue