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

@ -0,0 +1,11 @@
class_name NetworkUI
extends VBoxContainer
func set_ping(ping: float):
%Ping.text = str(snapped(ping * 1000, 1)) + " ms"
func set_download(download: int):
%Receive.text = "%d bytes" % download
func set_upload(upload: int):
%Send.text = "%d bytes" % upload