Working on fixing a bug with browser
This commit is contained in:
@@ -4,6 +4,8 @@ extends CanvasLayer
|
||||
@onready var status_label = $Panel/VBoxContainer/StatusLabel
|
||||
@onready var file_label = $Panel/VBoxContainer/FileLabel
|
||||
|
||||
var debug: bool = false;
|
||||
|
||||
func _ready():
|
||||
print("[LoadingScreen] _ready called")
|
||||
|
||||
@@ -24,7 +26,9 @@ func _on_update_progress(downloaded: int, total: int, current_file: String):
|
||||
if total > 0:
|
||||
progress_bar.value = (float(downloaded) / float(total)) * 100.0
|
||||
status_label.text = "Downloading assets... (%d/%d)" % [downloaded, total]
|
||||
file_label.text = current_file
|
||||
file_label.text = "This wont take long..."#current_file
|
||||
if debug:
|
||||
file_label.text = current_file
|
||||
else:
|
||||
progress_bar.value = 100.0
|
||||
status_label.text = "No updates needed"
|
||||
|
||||
Reference in New Issue
Block a user