12 lines
262 B
GDScript
12 lines
262 B
GDScript
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
|