22 lines
412 B
GDScript
22 lines
412 B
GDScript
extends Label
|
|
|
|
|
|
const _weekday_converter: Dictionary[int, String] = {
|
|
0: 'Dg.',
|
|
1: 'Dl.',
|
|
2: 'Dm.',
|
|
3: 'Dc.',
|
|
4: 'Dj.',
|
|
5: 'Dv.',
|
|
6: 'Ds.',
|
|
}
|
|
|
|
|
|
func _process(delta: float) -> void:
|
|
var time: Dictionary = Time.get_date_dict_from_system()
|
|
|
|
var weekday: int = time['weekday']
|
|
var month: int = time['month']
|
|
var day: int = time['day']
|
|
|
|
text = "%s %02d/%02d" % [_weekday_converter[weekday], day, month]
|