2026-08-17 16:38:10 +02:00
|
|
|
extends CanvasLayer
|
2026-08-02 16:19:24 +02:00
|
|
|
|
2026-08-17 16:38:10 +02:00
|
|
|
signal loading_screen_ready
|
2026-08-02 16:19:24 +02:00
|
|
|
|
2026-08-17 16:38:10 +02:00
|
|
|
@export var animation_player: AnimationPlayer
|
|
|
|
|
@onready var progress_bar: ProgressBar = %ProgressBar
|
2026-08-12 01:47:15 +02:00
|
|
|
|
2026-08-17 16:38:10 +02:00
|
|
|
func _ready() -> void:
|
|
|
|
|
await animation_player.animation_finished
|
|
|
|
|
loading_screen_ready.emit()
|
|
|
|
|
|
|
|
|
|
func _on_progress_changed(new_value: float) -> void:
|
|
|
|
|
progress_bar.value = new_value
|
|
|
|
|
|
|
|
|
|
func _on_load_finished() -> void:
|
|
|
|
|
animation_player.play_backwards("transition")
|
|
|
|
|
await animation_player.animation_finished
|
|
|
|
|
queue_free()
|