legacy-of-the-ancient-questor/scripts/ui/loading_screen.gd

17 lines
420 B
GDScript

extends Control
@export var loadingBar: TextureProgressBar
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
Loader.LOADING_PROGRESS_UPDATED.connect(_on_progress_updated)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_progress_updated(percentage: float) -> void:
loadingBar.value = percentage