mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-19 14:21:22 +00:00
- Shuffle news keys - Brought back check if city name is named "Furtropolis" to change outlet to "FNN" - Reduced ticker timer from 10 to 6 seconds
20 lines
430 B
GDScript
20 lines
430 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()
|