mirror of
https://github.com/tonytins/citylimits
synced 2025-06-26 01:44:42 -04:00
Slightly rewrote the news ticker architecture
- The news ticker is now a stealth button that opens a window. - News window now has brandings for FNN and Pawprint Press. - Ticker now provides extra lore by me if is_caseyverse.txt is present. - Moved the news ticker functions to the window source, for now. - Added .gdignore
This commit is contained in:
parent
aed8b266b8
commit
f8a0f97767
17 changed files with 670 additions and 157 deletions
16
scripts/autoload/caseyverse.gd
Normal file
16
scripts/autoload/caseyverse.gd
Normal file
|
@ -0,0 +1,16 @@
|
|||
extends Node
|
||||
|
||||
const caseyverse_path = "res://json/ticker/extra_lore.json"
|
||||
const is_caseyverse_path = "res://is_caseyverse.txt"
|
||||
|
||||
func is_caseyverse():
|
||||
var file = File.new()
|
||||
if file.file_exists(is_caseyverse_path):
|
||||
return true
|
||||
|
||||
func competing_outlet():
|
||||
var file = File.new()
|
||||
if is_caseyverse():
|
||||
file.open(caseyverse_path, File.READ)
|
||||
var result = parse_json(file.get_as_text())
|
||||
return result["competing_outlet"]
|
|
@ -11,7 +11,7 @@ signal advisor_message(advisor, message)
|
|||
|
||||
# News
|
||||
signal send_alert(message)
|
||||
signal resume_news
|
||||
signal rotate_news
|
||||
|
||||
# Policies
|
||||
signal clean_air_act
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue