citylimits/scripts/city_status.gd
Tony Bark b443ee61fe Moved date variables to dedicated singleton
Due to the growing complexity of date system, it's been moved to its own dedicated singleton.
2021-05-29 03:09:09 -04:00

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)