Rewrote news ticker

- Rewrote news ticker based on JSON web API tutorials
- Simplified json files for news ticker as part of rewrite
- Renamed /dialog to /json
This commit is contained in:
Tony Bark 2021-05-30 12:38:41 -04:00
parent b443ee61fe
commit ef6b097ef2
20 changed files with 170 additions and 71 deletions

View file

@ -0,0 +1,7 @@
extends Node
var power_grid: int # Number of power stations in the area. Helps provide redundancies.
var power_capacity: int
var current_power_cap: int
var prev_power_cap: int
var has_power: bool

View file

@ -14,18 +14,6 @@ var current_power_cap: int
var prev_power_cap: int
var has_power: bool
var res_tax: int = 1
var comm_tax: int = 1
var indust_tax: int = 1
var res_income: int
var comm_income: int
var ind_income: int
var fire_tax: int
var police_tax: int
var power_tax: int
var ticker_files: Array = [
"adverts.json",
"sammy.json"

View file

@ -0,0 +1,13 @@
extends Node
var res_tax: int = 1
var comm_tax: int = 1
var indust_tax: int = 1
var res_income: int
var comm_income: int
var ind_income: int
var fire_tax: int
var police_tax: int
var power_tax: int