2021-05-16 21:33:16 -04:00
|
|
|
[gd_scene load_steps=7 format=2]
|
2020-06-05 13:00:13 -04:00
|
|
|
|
2021-05-18 04:10:16 -04:00
|
|
|
[ext_resource path="res://scenes/Map.tscn" type="PackedScene" id=1]
|
|
|
|
[ext_resource path="res://scenes/Advise.tscn" type="PackedScene" id=2]
|
2021-05-20 00:58:17 -04:00
|
|
|
[ext_resource path="res://scripts/city_status.gd" type="Script" id=3]
|
|
|
|
[ext_resource path="res://scripts/gameplay.gd" type="Script" id=4]
|
2021-05-18 04:10:16 -04:00
|
|
|
[ext_resource path="res://sprites/police.png" type="Texture" id=5]
|
|
|
|
[ext_resource path="res://sprites/firestation.png" type="Texture" id=6]
|
|
|
|
|
|
|
|
[node name="Game" type="Node"]
|
2020-06-11 00:32:25 -04:00
|
|
|
script = ExtResource( 4 )
|
2020-06-05 13:00:13 -04:00
|
|
|
|
2021-05-18 04:10:16 -04:00
|
|
|
[node name="Map" parent="." instance=ExtResource( 1 )]
|
2020-06-05 13:00:13 -04:00
|
|
|
|
2021-05-18 04:10:16 -04:00
|
|
|
[node name="Controls" type="CanvasLayer" parent="."]
|
2020-06-05 13:00:13 -04:00
|
|
|
|
2021-05-18 04:10:16 -04:00
|
|
|
[node name="GUI" type="Control" parent="Controls"]
|
2020-06-11 00:32:25 -04:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-05-18 04:10:16 -04:00
|
|
|
[node name="AdvsiorNotice" parent="Controls/GUI" instance=ExtResource( 2 )]
|
|
|
|
|
|
|
|
[node name="Status" type="Panel" parent="Controls/GUI"]
|
|
|
|
anchor_top = 0.883459
|
|
|
|
anchor_right = 0.592773
|
|
|
|
anchor_bottom = 1.00179
|
2020-06-11 00:32:25 -04:00
|
|
|
__meta__ = {
|
2021-05-18 04:10:16 -04:00
|
|
|
"_edit_use_anchors_": true
|
2020-06-11 00:32:25 -04:00
|
|
|
}
|
|
|
|
|
2021-05-18 04:10:16 -04:00
|
|
|
[node name="Toolbar" type="HBoxContainer" parent="Controls/GUI/Status"]
|
|
|
|
anchor_left = 0.00823723
|
|
|
|
anchor_top = 0.0704225
|
|
|
|
anchor_right = 0.98682
|
|
|
|
anchor_bottom = 1.0
|
2020-06-11 00:32:25 -04:00
|
|
|
__meta__ = {
|
2021-05-18 04:10:16 -04:00
|
|
|
"_edit_use_anchors_": true
|
2020-06-11 00:32:25 -04:00
|
|
|
}
|
|
|
|
|
2021-05-18 04:10:16 -04:00
|
|
|
[node name="Status" type="VBoxContainer" parent="Controls/GUI/Status/Toolbar"]
|
|
|
|
margin_right = 93.0
|
2021-05-20 00:58:17 -04:00
|
|
|
margin_bottom = 65.0
|
2021-05-18 04:10:16 -04:00
|
|
|
script = ExtResource( 3 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": true
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="CityNameLbl" type="Label" parent="Controls/GUI/Status/Toolbar/Status"]
|
|
|
|
margin_right = 93.0
|
|
|
|
margin_bottom = 14.0
|
2020-06-11 00:32:25 -04:00
|
|
|
text = "City Name"
|
2021-05-18 04:10:16 -04:00
|
|
|
align = 1
|
2020-06-11 00:32:25 -04:00
|
|
|
|
2021-05-18 04:10:16 -04:00
|
|
|
[node name="GameSpeed" type="MenuButton" parent="Controls/GUI/Status/Toolbar/Status"]
|
|
|
|
margin_top = 18.0
|
|
|
|
margin_right = 93.0
|
|
|
|
margin_bottom = 38.0
|
|
|
|
focus_mode = 2
|
2020-06-11 00:32:25 -04:00
|
|
|
text = "Game Speed"
|
|
|
|
items = [ "Slow", null, 0, false, false, 0, 0, null, "", false, "Medium", null, 0, false, false, 1, 0, null, "", false, "Fast", null, 0, false, false, 2, 0, null, "", false ]
|
|
|
|
|
2021-05-18 04:10:16 -04:00
|
|
|
[node name="Money" type="HBoxContainer" parent="Controls/GUI/Status/Toolbar/Status"]
|
|
|
|
margin_top = 42.0
|
|
|
|
margin_right = 93.0
|
|
|
|
margin_bottom = 56.0
|
|
|
|
alignment = 1
|
2020-06-11 00:32:25 -04:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-05-18 04:10:16 -04:00
|
|
|
[node name="CurrencyLbl" type="Label" parent="Controls/GUI/Status/Toolbar/Status/Money"]
|
|
|
|
margin_left = 36.0
|
|
|
|
margin_right = 43.0
|
|
|
|
margin_bottom = 14.0
|
2021-05-16 21:33:16 -04:00
|
|
|
text = "§"
|
2020-06-11 00:32:25 -04:00
|
|
|
|
2021-05-18 04:10:16 -04:00
|
|
|
[node name="MoneyLbl" type="Label" parent="Controls/GUI/Status/Toolbar/Status/Money"]
|
|
|
|
margin_left = 47.0
|
|
|
|
margin_right = 56.0
|
|
|
|
margin_bottom = 14.0
|
2020-06-11 00:32:25 -04:00
|
|
|
text = "#"
|
|
|
|
|
2021-05-18 04:10:16 -04:00
|
|
|
[node name="PoliceBtn" type="TextureButton" parent="Controls/GUI/Status/Toolbar"]
|
|
|
|
margin_left = 97.0
|
|
|
|
margin_right = 145.0
|
2021-05-20 00:58:17 -04:00
|
|
|
margin_bottom = 65.0
|
2021-05-18 04:10:16 -04:00
|
|
|
texture_normal = ExtResource( 5 )
|
|
|
|
|
|
|
|
[node name="FireBtn" type="TextureButton" parent="Controls/GUI/Status/Toolbar"]
|
|
|
|
margin_left = 149.0
|
|
|
|
margin_right = 197.0
|
2021-05-20 00:58:17 -04:00
|
|
|
margin_bottom = 65.0
|
2021-05-18 04:10:16 -04:00
|
|
|
texture_normal = ExtResource( 6 )
|
2021-05-20 00:58:17 -04:00
|
|
|
|
|
|
|
[connection signal="pressed" from="Controls/GUI/Status/Toolbar/PoliceBtn" to="Map" method="_on_PoliceBtn_pressed"]
|