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

12 lines
299 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)
func _on_progress_updated(percentage: float) -> void:
loadingBar.value = percentage