mirror of
https://github.com/tonytins/citylimits
synced 2025-12-19 06:14:42 -05:00
Streamlined advisor window
- Streamlined advisor window messages through signals. - Added TODO file - Ignore /except directory - News ticker based on the advisor code with text from SC3k with news from the game, with some exceptions. - New SC3k-like interface. - Added icons from Font Awesome.
This commit is contained in:
parent
e5505a3244
commit
d1da70a099
38 changed files with 1738 additions and 413 deletions
|
|
@ -1,10 +1,20 @@
|
|||
extends Node2D
|
||||
|
||||
onready var rotate_news = $RotateNews
|
||||
onready var quarters = $Quarters
|
||||
|
||||
func _ready():
|
||||
SimEvents.connect("resume_news", self, "_resume_rotation")
|
||||
SimEvents.connect("send_alert", self, "_stop_news")
|
||||
|
||||
func _on_Quarters_timeout():
|
||||
SimData.year += 1
|
||||
SimData.prev_quarter = SimData.quarter
|
||||
|
||||
SimEvents.emit_signal("budget")
|
||||
quarters.start()
|
||||
SimEvents.emit_signal("budget")
|
||||
|
||||
func _stop_news():
|
||||
rotate_news.stop()
|
||||
|
||||
func _resume_rotation():
|
||||
rotate_news.start()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue