mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-15 12:21:22 +00:00
Due to the growing complexity of date system, it's been moved to its own dedicated singleton.
12 lines
407 B
GDScript
12 lines
407 B
GDScript
extends HBoxContainer
|
|
|
|
onready var city_name = $NameDate/CityNameLbl
|
|
onready var budget = $PopBudget/BudgetCtr/BudgetLbl
|
|
onready var calendar = $NameDate/YearCtr/CalendarLbl
|
|
|
|
func _process(delta):
|
|
city_name.text = SimData.city_name
|
|
budget.text = str(SimData.budget)
|
|
var day = "%02d" % SimTime.day
|
|
var month = "%02d" % SimTime.month
|
|
calendar.text = str(day) + "/" + str(month) + "/" + str(SimTime.year)
|