Improved UI event system

This commit is contained in:
2024-02-25 23:01:17 +01:00
parent 44fd041c60
commit 0a489e5d2f
16 changed files with 138 additions and 152 deletions

View File

@ -1,7 +0,0 @@
extends DebugLabel
func _ready():
owner.download_changed.connect(on_download_changed)
func on_download_changed(download):
text = "%d bytes" % download

View File

@ -1,7 +0,0 @@
extends DebugLabel
func _ready():
owner.ping_changed.connect(on_ping_changed)
func on_ping_changed(ping):
text = str(snapped(ping * 1000, 1)) + " ms"

View File

@ -1,7 +0,0 @@
extends DebugLabel
func _ready():
owner.upload_changed.connect(on_upload_changed)
func on_upload_changed(upload):
text = "%d bytes" % upload