mirror of
https://github.com/tonytins/citylimits
synced 2025-12-19 22:24:42 -05:00
Moved date variables to dedicated singleton
Due to the growing complexity of date system, it's been moved to its own dedicated singleton.
This commit is contained in:
parent
ae1b600928
commit
b443ee61fe
6 changed files with 56 additions and 33 deletions
|
|
@ -7,6 +7,6 @@ onready var calendar = $NameDate/YearCtr/CalendarLbl
|
|||
func _process(delta):
|
||||
city_name.text = SimData.city_name
|
||||
budget.text = str(SimData.budget)
|
||||
var day = "%02d" % SimData.day
|
||||
var month = "%02d" % SimData.month
|
||||
calendar.text = str(day) + "/" + str(month) + "/" + str(SimData.year)
|
||||
var day = "%02d" % SimTime.day
|
||||
var month = "%02d" % SimTime.month
|
||||
calendar.text = str(day) + "/" + str(month) + "/" + str(SimTime.year)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue