extends Panel # Declare member variables here. Examples: # var a = 2 # var b = "text" # Called when the node enters the scene tree for the first time. func _ready(): Messenger.connect("statusUpdate", self, "_on_status_updated") # Called every frame. 'delta' is the elapsed time since the previous frame. #func _process(delta): # pass func _on_status_updated(download): rect_size = $VBoxContainer.rect_size $VBoxContainer/name.text = download._file_name $VBoxContainer/size.text = "size: %s"%download._file_size $VBoxContainer/downloaded.text = "downloaded: %s"%download._downloaded_size $VBoxContainer/ProgressBar.value = download._downloaded_percent