mirror of
https://github.com/CrispyPin/ovr-utils.git
synced 2025-04-11 15:03:58 +02:00
17 lines
302 B
GDScript
17 lines
302 B
GDScript
extends Label
|
|
|
|
|
|
func _ready() -> void:
|
|
pass
|
|
|
|
|
|
func _process(delta: float) -> void:
|
|
_update_time()
|
|
|
|
|
|
func _update_time():
|
|
var h = str(OS.get_time().hour)
|
|
var m = str(OS.get_time().minute)
|
|
h = h if len(h) == 2 else "0" + h
|
|
m = m if len(m) == 2 else "0" + m
|
|
text = h + ":" + m
|