mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-19 14:21:22 +00:00
- 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.
20 lines
429 B
GDScript
20 lines
429 B
GDScript
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")
|
|
|
|
func _stop_news():
|
|
rotate_news.stop()
|
|
|
|
func _resume_rotation():
|
|
rotate_news.start()
|