12 lines
262 B
GDScript3
Raw Normal View History

2024-02-25 22:01:17 +00:00
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):
2024-02-28 11:14:27 +00:00
%Send.text = "%d bytes" % upload