17 lines
420 B
GDScript
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
|