citylimits/scenes/game.tscn
Tony Bark 65cc08fab6 Decoupling more hardcoded data
- Created a json helper to streamline decoupling of hardcoded data
- Removed non-existent VR bridge reference
- News ticker files are no longer hardcoded to the game.
- Removed hardcoded city and mayor names using Json helper
2022-08-08 16:10:14 -04:00

490 lines
16 KiB
Text

[gd_scene load_steps=46 format=2]
[ext_resource path="res://scenes/maps/MapOne.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/ticker/pawprint-logo.svg" type="Texture" id=2]
[ext_resource path="res://assets/symbols/fontawesome/population.svg" type="Texture" id=3]
[ext_resource path="res://scenes/windows/Advisor.tscn" type="PackedScene" id=4]
[ext_resource path="res://assets/ui/iccom.png" type="Texture" id=5]
[ext_resource path="res://scenes/windows/DebugConsole.tscn" type="PackedScene" id=6]
[ext_resource path="res://assets/symbols/fontawesome/fast.svg" type="Texture" id=7]
[ext_resource path="res://assets/symbols/fontawesome/slow.svg" type="Texture" id=8]
[ext_resource path="res://assets/ui/icres.png" type="Texture" id=9]
[ext_resource path="res://assets/ui/icreshi.png" type="Texture" id=10]
[ext_resource path="res://assets/ui/icfire.png" type="Texture" id=11]
[ext_resource path="res://assets/ui/icindhi.png" type="Texture" id=12]
[ext_resource path="res://assets/ui/icind.png" type="Texture" id=13]
[ext_resource path="res://assets/ui/icqryhi.png" type="Texture" id=14]
[ext_resource path="res://assets/ui/icqry.png" type="Texture" id=15]
[ext_resource path="res://assets/ui/icpol.png" type="Texture" id=16]
[ext_resource path="res://assets/ui/icdozr.png" type="Texture" id=17]
[ext_resource path="res://assets/ui/iccoalhi.png" type="Texture" id=18]
[ext_resource path="res://assets/ui/iccoal.png" type="Texture" id=19]
[ext_resource path="res://scripts/game.gd" type="Script" id=20]
[ext_resource path="res://scenes/windows/Meet.tscn" type="PackedScene" id=21]
[ext_resource path="res://assets/ui/icparkhi.png" type="Texture" id=22]
[ext_resource path="res://assets/ui/icnuc.png" type="Texture" id=23]
[ext_resource path="res://assets/ui/icpark.png" type="Texture" id=24]
[ext_resource path="res://assets/ui/icnuchi.png" type="Texture" id=25]
[ext_resource path="res://assets/ui/icseap.png" type="Texture" id=26]
[ext_resource path="res://assets/ui/icseaphi.png" type="Texture" id=27]
[ext_resource path="res://assets/ui/icstad.png" type="Texture" id=28]
[ext_resource path="res://assets/ui/icpolhi.png" type="Texture" id=29]
[ext_resource path="res://assets/ui/iccomhi.png" type="Texture" id=30]
[ext_resource path="res://assets/ui/icdozrhi.png" type="Texture" id=31]
[ext_resource path="res://scenes/windows/TaxWindow.tscn" type="PackedScene" id=32]
[ext_resource path="res://assets/ui/icfirehi.png" type="Texture" id=33]
[ext_resource path="res://scenes/windows/Credits.tscn" type="PackedScene" id=34]
[ext_resource path="res://assets/symbols/fontawesome/cogs.svg" type="Texture" id=35]
[ext_resource path="res://assets/symbols/fontawesome/calendar.svg" type="Texture" id=36]
[ext_resource path="res://scripts/windows.gd" type="Script" id=37]
[ext_resource path="res://scripts/city_status.gd" type="Script" id=38]
[ext_resource path="res://assets/ui/pause.svg" type="Texture" id=39]
[ext_resource path="res://assets/symbols/fontawesome/pie-chart.svg" type="Texture" id=40]
[ext_resource path="res://assets/symbols/fontawesome/coins.svg" type="Texture" id=41]
[ext_resource path="res://assets/symbols/fontawesome/city.svg" type="Texture" id=42]
[ext_resource path="res://assets/symbols/fontawesome/envelope.svg" type="Texture" id=43]
[ext_resource path="res://scenes/windows/Ordinance.tscn" type="PackedScene" id=44]
[ext_resource path="res://scripts/ticker.gd" type="Script" id=45]
[node name="Game" type="Node2D"]
script = ExtResource( 20 )
[node name="DayCycle" type="Timer" parent="."]
wait_time = 12.0
autostart = true
__meta__ = {
"_editor_description_": "Calculation based on: https://gaming.stackexchange.com/questions/110529/real-world-time-in-a-simcity-day-on-various-speeds"
}
[node name="MapOne" parent="." instance=ExtResource( 1 )]
[node name="Controls" type="CanvasLayer" parent="."]
[node name="Control Panel" type="Control" parent="Controls"]
margin_right = 40.0
margin_bottom = 40.0
script = ExtResource( 45 )
[node name="Windows" type="Control" parent="Controls/Control Panel"]
anchor_right = 25.65
anchor_bottom = 12.9
script = ExtResource( 37 )
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": true
}
[node name="Console" parent="Controls/Control Panel/Windows" instance=ExtResource( 6 )]
anchor_left = 0.590492
anchor_top = 0.0604199
anchor_right = 0.985023
anchor_bottom = 0.312087
rect_min_size = Vector2( 400, 150 )
resizable = true
[node name="CityPlanner" parent="Controls/Control Panel/Windows" instance=ExtResource( 4 )]
[node name="TaxWindow" parent="Controls/Control Panel/Windows" instance=ExtResource( 32 )]
visible = false
anchor_left = 0.297863
anchor_top = 0.409167
anchor_right = 0.702137
anchor_bottom = 0.590833
margin_bottom = 3.05176e-05
[node name="AdvisorMeet" parent="Controls/Control Panel/Windows" instance=ExtResource( 21 )]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -234.609
margin_top = -138.5
margin_right = 234.609
margin_bottom = 138.5
[node name="ToolsWindow" type="WindowDialog" parent="Controls/Control Panel/Windows"]
anchor_left = 0.402435
anchor_top = 0.315697
anchor_right = 0.60263
anchor_bottom = 0.684303
window_title = "Tools"
__meta__ = {
"_edit_use_anchors_": true
}
[node name="CenterCtr" type="CenterContainer" parent="Controls/Control Panel/Windows/ToolsWindow"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VertCtr" type="VBoxContainer" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr"]
margin_left = 12.0
margin_top = 9.0
margin_right = 192.0
margin_bottom = 181.0
[node name="LargeCtr" type="HBoxContainer" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr"]
margin_right = 180.0
margin_bottom = 42.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureButton" type="TextureButton" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr/LargeCtr"]
margin_right = 42.0
margin_bottom = 42.0
texture_normal = ExtResource( 28 )
[node name="TextureButton2" type="TextureButton" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr/LargeCtr"]
margin_left = 46.0
margin_right = 88.0
margin_bottom = 42.0
texture_normal = ExtResource( 26 )
texture_pressed = ExtResource( 27 )
[node name="NuclearBtn" type="TextureButton" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr/LargeCtr"]
margin_left = 92.0
margin_right = 134.0
margin_bottom = 42.0
texture_normal = ExtResource( 23 )
texture_pressed = ExtResource( 25 )
[node name="CoalBtn" type="TextureButton" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr/LargeCtr"]
margin_left = 138.0
margin_right = 180.0
margin_bottom = 42.0
texture_normal = ExtResource( 19 )
texture_pressed = ExtResource( 18 )
[node name="SmallCtr" type="HBoxContainer" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr"]
margin_top = 46.0
margin_right = 180.0
margin_bottom = 80.0
__meta__ = {
"_edit_use_anchors_": true
}
[node name="PoliceBtn" type="TextureButton" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr/SmallCtr"]
margin_right = 34.0
margin_bottom = 34.0
texture_normal = ExtResource( 29 )
texture_pressed = ExtResource( 16 )
[node name="FireBtn" type="TextureButton" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr/SmallCtr"]
margin_left = 38.0
margin_right = 72.0
margin_bottom = 34.0
texture_normal = ExtResource( 33 )
texture_pressed = ExtResource( 11 )
[node name="ParkBtn" type="TextureButton" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr/SmallCtr"]
margin_left = 76.0
margin_right = 110.0
margin_bottom = 34.0
texture_normal = ExtResource( 24 )
texture_pressed = ExtResource( 22 )
[node name="ToolsCtr" type="HBoxContainer" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr"]
margin_top = 84.0
margin_right = 180.0
margin_bottom = 118.0
__meta__ = {
"_edit_use_anchors_": true
}
[node name="InfoBtn" type="TextureButton" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr/ToolsCtr"]
margin_right = 34.0
margin_bottom = 34.0
texture_normal = ExtResource( 15 )
texture_pressed = ExtResource( 14 )
[node name="BulldozeBtn" type="TextureButton" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr/ToolsCtr"]
margin_left = 38.0
margin_right = 72.0
margin_bottom = 34.0
texture_normal = ExtResource( 17 )
texture_pressed = ExtResource( 31 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ZonesCtr" type="HBoxContainer" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr"]
margin_top = 122.0
margin_right = 180.0
margin_bottom = 172.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ResBtn" type="TextureButton" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr/ZonesCtr"]
margin_right = 34.0
margin_bottom = 50.0
texture_normal = ExtResource( 9 )
texture_pressed = ExtResource( 10 )
[node name="ComBtn" type="TextureButton" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr/ZonesCtr"]
margin_left = 38.0
margin_right = 72.0
margin_bottom = 50.0
texture_normal = ExtResource( 5 )
texture_pressed = ExtResource( 30 )
[node name="IndBtn" type="TextureButton" parent="Controls/Control Panel/Windows/ToolsWindow/CenterCtr/VertCtr/ZonesCtr"]
margin_left = 76.0
margin_right = 110.0
margin_bottom = 50.0
texture_normal = ExtResource( 13 )
texture_pressed = ExtResource( 12 )
[node name="Credits" parent="Controls/Control Panel/Windows" instance=ExtResource( 34 )]
anchor_left = 0.393762
anchor_top = 0.292636
anchor_right = 0.605263
anchor_bottom = 0.78876
[node name="PauseIndicator" type="TextureRect" parent="Controls/Control Panel/Windows"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
texture = ExtResource( 39 )
stretch_mode = 1
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="Ordinance" parent="Controls/Control Panel/Windows" instance=ExtResource( 44 )]
[node name="VRMode" type="Button" parent="Controls/Control Panel/Windows"]
visible = false
anchor_left = 0.919922
anchor_top = 0.0197812
anchor_right = 0.989258
anchor_bottom = 0.0664478
text = "VR Mode"
__meta__ = {
"_edit_use_anchors_": true
}
[node name="NewsWindow" type="WindowDialog" parent="Controls/Control Panel/Windows"]
visible = true
anchor_left = 0.0877193
anchor_top = 0.234496
anchor_right = 0.69883
anchor_bottom = 0.656977
__meta__ = {
"_edit_use_anchors_": true
}
[node name="News" type="ItemList" parent="Controls/Control Panel/Windows/NewsWindow"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = 53.0
[node name="Brand" type="HSplitContainer" parent="Controls/Control Panel/Windows/NewsWindow"]
anchor_left = 0.0175719
anchor_top = 0.0242718
anchor_right = 0.982428
anchor_bottom = 0.23301
__meta__ = {
"_edit_use_anchors_": true
}
[node name="NewsBrand" type="TextureRect" parent="Controls/Control Panel/Windows/NewsWindow/Brand"]
margin_right = 288.0
margin_bottom = 45.505
texture = ExtResource( 2 )
[node name="NewsMotto" type="Label" parent="Controls/Control Panel/Windows/NewsWindow/Brand"]
margin_left = 300.0
margin_top = 15.0
margin_right = 604.964
margin_bottom = 29.0
align = 2
valign = 1
[node name="Status" type="Panel" parent="Controls/Control Panel"]
anchor_top = 12.95
anchor_right = 25.65
anchor_bottom = 15.25
__meta__ = {
"_edit_use_anchors_": true
}
[node name="RotateNews" type="Timer" parent="Controls/Control Panel/Status"]
wait_time = 5.0
autostart = true
[node name="SettingsBtn" type="Button" parent="Controls/Control Panel/Status"]
anchor_left = 0.0115391
anchor_top = 0.0555202
anchor_right = 0.0525548
anchor_bottom = 0.533132
hint_tooltip = "Meet"
size_flags_horizontal = 4
icon = ExtResource( 35 )
__meta__ = {
"_edit_use_anchors_": true
}
[node name="StatCtr" type="HBoxContainer" parent="Controls/Control Panel/Status"]
anchor_left = 0.0566406
anchor_top = 0.0750188
anchor_right = 0.996094
anchor_bottom = 0.516879
custom_constants/separation = 50
alignment = 1
script = ExtResource( 38 )
__meta__ = {
"_edit_use_anchors_": true
}
[node name="ButtonCtr" type="HBoxContainer" parent="Controls/Control Panel/Status/StatCtr"]
margin_left = 233.0
margin_right = 515.0
margin_bottom = 40.0
custom_constants/separation = 10
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TaxBtn" type="Button" parent="Controls/Control Panel/Status/StatCtr/ButtonCtr"]
margin_right = 42.0
margin_bottom = 40.0
hint_tooltip = "RCI"
size_flags_horizontal = 4
icon = ExtResource( 40 )
[node name="ToolsBtn" type="Button" parent="Controls/Control Panel/Status/StatCtr/ButtonCtr"]
margin_left = 52.0
margin_right = 94.0
margin_bottom = 40.0
hint_tooltip = "Tools"
size_flags_horizontal = 4
icon = ExtResource( 42 )
[node name="AdvsiorBtn" type="Button" parent="Controls/Control Panel/Status/StatCtr/ButtonCtr"]
margin_left = 104.0
margin_right = 146.0
margin_bottom = 40.0
hint_tooltip = "Meet"
size_flags_horizontal = 4
icon = ExtResource( 43 )
[node name="VSeparator" type="VSeparator" parent="Controls/Control Panel/Status/StatCtr/ButtonCtr"]
margin_left = 156.0
margin_right = 160.0
margin_bottom = 40.0
[node name="TurtleBtn" type="Button" parent="Controls/Control Panel/Status/StatCtr/ButtonCtr"]
margin_left = 170.0
margin_right = 211.0
margin_bottom = 40.0
hint_tooltip = "Slow"
toggle_mode = true
icon = ExtResource( 8 )
[node name="CheetaBtn" type="Button" parent="Controls/Control Panel/Status/StatCtr/ButtonCtr"]
margin_left = 221.0
margin_right = 268.0
margin_bottom = 40.0
hint_tooltip = "Fast"
toggle_mode = true
icon = ExtResource( 7 )
[node name="VSeparator2" type="VSeparator" parent="Controls/Control Panel/Status/StatCtr/ButtonCtr"]
margin_left = 278.0
margin_right = 282.0
margin_bottom = 40.0
[node name="NameDate" type="VBoxContainer" parent="Controls/Control Panel/Status/StatCtr"]
margin_left = 565.0
margin_right = 653.0
margin_bottom = 40.0
alignment = 1
[node name="CityNameLbl" type="Label" parent="Controls/Control Panel/Status/StatCtr/NameDate"]
margin_top = 4.0
margin_right = 88.0
margin_bottom = 18.0
text = "City Name"
align = 1
[node name="YearCtr" type="HBoxContainer" parent="Controls/Control Panel/Status/StatCtr/NameDate"]
margin_top = 22.0
margin_right = 88.0
margin_bottom = 36.0
[node name="CalIcon" type="TextureRect" parent="Controls/Control Panel/Status/StatCtr/NameDate/YearCtr"]
margin_right = 10.0
margin_bottom = 14.0
texture = ExtResource( 36 )
stretch_mode = 4
[node name="CalendarLbl" type="Label" parent="Controls/Control Panel/Status/StatCtr/NameDate/YearCtr"]
margin_left = 14.0
margin_right = 88.0
margin_bottom = 14.0
text = "01/01/2000"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PopBudget" type="VBoxContainer" parent="Controls/Control Panel/Status/StatCtr"]
margin_left = 703.0
margin_right = 729.0
margin_bottom = 40.0
alignment = 1
[node name="BudgetCtr" type="HBoxContainer" parent="Controls/Control Panel/Status/StatCtr/PopBudget"]
margin_top = 4.0
margin_right = 26.0
margin_bottom = 18.0
[node name="CoinsIcon" type="TextureRect" parent="Controls/Control Panel/Status/StatCtr/PopBudget/BudgetCtr"]
margin_right = 14.0
margin_bottom = 14.0
texture = ExtResource( 41 )
stretch_mode = 4
[node name="BudgetLbl" type="Label" parent="Controls/Control Panel/Status/StatCtr/PopBudget/BudgetCtr"]
margin_left = 18.0
margin_right = 26.0
margin_bottom = 14.0
text = "0"
[node name="PopCtr" type="HBoxContainer" parent="Controls/Control Panel/Status/StatCtr/PopBudget"]
margin_top = 22.0
margin_right = 26.0
margin_bottom = 36.0
[node name="PopIcon" type="TextureRect" parent="Controls/Control Panel/Status/StatCtr/PopBudget/PopCtr"]
margin_right = 14.0
margin_bottom = 14.0
texture = ExtResource( 3 )
stretch_mode = 4
[node name="PopLbl" type="Label" parent="Controls/Control Panel/Status/StatCtr/PopBudget/PopCtr"]
margin_left = 18.0
margin_right = 26.0
margin_bottom = 14.0
text = "0"
[node name="NewsBtn" type="Button" parent="Controls/Control Panel/Status"]
anchor_left = 0.0078125
anchor_top = 0.633158
anchor_right = 0.989258
anchor_bottom = 0.888972
text = "News"
flat = true
align = 0
__meta__ = {
"_edit_use_anchors_": true
}
[connection signal="timeout" from="DayCycle" to="." method="_on_DayCycle_timeout"]
[connection signal="timeout" from="Controls/Control Panel/Status/RotateNews" to="Controls/Control Panel" method="_on_RotateNews_timeout"]
[connection signal="pressed" from="Controls/Control Panel/Status/NewsBtn" to="Controls/Control Panel" method="_on_NewsBtn_pressed"]