Messenger.gd 501 B

1234567891011121314151617181920212223
  1. extends Node
  2. # Declare member variables here. Examples:
  3. # var a = 2
  4. # var b = "text"
  5. signal statusUpdate
  6. signal fileDownloaded
  7. # Called when the node enters the scene tree for the first time.
  8. func _ready():
  9. pass # Replace with function body.
  10. func _on_statusUpdate(update):
  11. emit_signal("statusUpdate", update)
  12. func _on_file_downloaded(download):
  13. emit_signal("fileDownloaded", download)
  14. # Called every frame. 'delta' is the elapsed time since the previous frame.
  15. #func _process(delta):
  16. # pass