small racing game im working on
1
2
3
4
5
6
7
8
extends Control

func init(t: float, n: String) -> void:
	$VBoxContainer/name.text = n
	if t < 0:
		$VBoxContainer/time.text = "no time set"
	else:
		$VBoxContainer/time.text = GameTimer.format_precise(t)