Farming/Scripts/label.gd

16 lines
366 B
GDScript

extends Label
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
pass
func _on_day_night_time_changed(hour: int, minute: int) -> void:
text = "%02d:%02d" % [hour, minute]