Frontier-of-Hell/scripts/ui/game_duration.gd

5 lines
No EOL
123 B
GDScript

extends Control
func update_duration(time: float):
$Duration/Label.text = "%d:%02d" % [floor(time / 60), int(time) % 60]