End of chapter 6. A lot of problems took to much time to solve. It was good to know better Godot internal mechanism.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
extends Control
|
||||
|
||||
@export var loadingBar: TextureProgressBar
|
||||
@export var loadingBar:TextureProgressBar
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
func _ready():
|
||||
Loader.LOADING_PROGRESS_UPDATED.connect(_on_progress_updated)
|
||||
|
||||
|
||||
func _on_progress_updated(percentage: float) -> void:
|
||||
loadingBar.value = percentage
|
||||
func _on_progress_updated(percentage):
|
||||
loadingBar.value = percentage * 100
|
||||
|
||||
Reference in New Issue
Block a user