Improved UI event system
This commit is contained in:
11
client/ui/network/Network.gd
Normal file
11
client/ui/network/Network.gd
Normal 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
|
Reference in New Issue
Block a user