generated from krampus/template-godot4
222 lines
8.7 KiB
Plaintext
222 lines
8.7 KiB
Plaintext
|
|
[gd_scene format=3 uid="uid://caq4f3l237i42"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" uid="uid://cuk0e8hibj3ag" path="res://prefabs/ui/controls.gd" id="1_qhv1l"]
|
||
|
|
[ext_resource type="PackedScene" uid="uid://cisd4grq8kxqn" path="res://prefabs/tiles/turns/up_turn.tscn" id="2_eu1vu"]
|
||
|
|
[ext_resource type="PackedScene" uid="uid://ce25rk1nl0pqn" path="res://prefabs/tiles/turns/right_turn.tscn" id="3_7r4kk"]
|
||
|
|
[ext_resource type="PackedScene" uid="uid://2qudi2d82y73" path="res://prefabs/tiles/turns/down_turn.tscn" id="4_c56vf"]
|
||
|
|
[ext_resource type="PackedScene" uid="uid://7jht5hlggey1" path="res://prefabs/tiles/turns/left_turn.tscn" id="5_dxd6m"]
|
||
|
|
[ext_resource type="PackedScene" uid="uid://cpmlj6muvdwix" path="res://prefabs/tiles/buildings/building_selector.tscn" id="6_7r4kk"]
|
||
|
|
|
||
|
|
[sub_resource type="LabelSettings" id="LabelSettings_qhv1l"]
|
||
|
|
font_size = 24
|
||
|
|
font_color = Color(0, 0, 0, 1)
|
||
|
|
outline_size = 4
|
||
|
|
|
||
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qhv1l"]
|
||
|
|
content_margin_left = 10.0
|
||
|
|
content_margin_right = 10.0
|
||
|
|
content_margin_bottom = 10.0
|
||
|
|
bg_color = Color(0, 0, 0, 0.75000006)
|
||
|
|
corner_radius_bottom_right = 10
|
||
|
|
corner_radius_bottom_left = 10
|
||
|
|
expand_margin_top = 100.0
|
||
|
|
|
||
|
|
[sub_resource type="LabelSettings" id="LabelSettings_eu1vu"]
|
||
|
|
font_size = 24
|
||
|
|
|
||
|
|
[sub_resource type="LabelSettings" id="LabelSettings_j4kb6"]
|
||
|
|
font_size = 24
|
||
|
|
|
||
|
|
[sub_resource type="LabelSettings" id="LabelSettings_c56vf"]
|
||
|
|
font_size = 32
|
||
|
|
|
||
|
|
[node name="Info" type="Control" unique_id=1719205711]
|
||
|
|
process_mode = 3
|
||
|
|
layout_mode = 3
|
||
|
|
anchors_preset = 15
|
||
|
|
anchor_right = 1.0
|
||
|
|
anchor_bottom = 1.0
|
||
|
|
grow_horizontal = 2
|
||
|
|
grow_vertical = 2
|
||
|
|
mouse_filter = 2
|
||
|
|
script = ExtResource("1_qhv1l")
|
||
|
|
|
||
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=306420303]
|
||
|
|
layout_mode = 1
|
||
|
|
anchors_preset = 15
|
||
|
|
anchor_right = 1.0
|
||
|
|
anchor_bottom = 1.0
|
||
|
|
grow_horizontal = 2
|
||
|
|
grow_vertical = 2
|
||
|
|
theme_override_constants/separation = 20
|
||
|
|
|
||
|
|
[node name="Controls" type="HBoxContainer" parent="HBoxContainer" unique_id=1720290955]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 2
|
||
|
|
size_flags_vertical = 4
|
||
|
|
|
||
|
|
[node name="Play" type="Button" parent="HBoxContainer/Controls" unique_id=1480835490]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
custom_minimum_size = Vector2(100, 0)
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Play"
|
||
|
|
|
||
|
|
[node name="Pause" type="Button" parent="HBoxContainer/Controls" unique_id=262580515]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
visible = false
|
||
|
|
custom_minimum_size = Vector2(100, 0)
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Pause"
|
||
|
|
|
||
|
|
[node name="FastForward" type="Button" parent="HBoxContainer/Controls" unique_id=2131459229]
|
||
|
|
custom_minimum_size = Vector2(100, 0)
|
||
|
|
layout_mode = 2
|
||
|
|
text = "FF (x1)"
|
||
|
|
|
||
|
|
[node name="Info" type="HBoxContainer" parent="HBoxContainer" unique_id=360698054]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 6
|
||
|
|
size_flags_vertical = 4
|
||
|
|
theme_override_constants/separation = 20
|
||
|
|
|
||
|
|
[node name="TurnContainer" type="HBoxContainer" parent="HBoxContainer/Info" unique_id=826409017]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_vertical = 4
|
||
|
|
theme_override_constants/separation = 10
|
||
|
|
|
||
|
|
[node name="Label" type="Label" parent="HBoxContainer/Info/TurnContainer" unique_id=338068267]
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Turn:"
|
||
|
|
label_settings = SubResource("LabelSettings_qhv1l")
|
||
|
|
|
||
|
|
[node name="Turn" type="Label" parent="HBoxContainer/Info/TurnContainer" unique_id=382814338]
|
||
|
|
layout_mode = 2
|
||
|
|
text = "0"
|
||
|
|
label_settings = SubResource("LabelSettings_qhv1l")
|
||
|
|
|
||
|
|
[node name="MoneyContainer" type="HBoxContainer" parent="HBoxContainer/Info" unique_id=1863734551]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 4
|
||
|
|
size_flags_vertical = 4
|
||
|
|
theme_override_constants/separation = 10
|
||
|
|
|
||
|
|
[node name="Label" type="Label" parent="HBoxContainer/Info/MoneyContainer" unique_id=1382535313]
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Money:"
|
||
|
|
label_settings = SubResource("LabelSettings_qhv1l")
|
||
|
|
|
||
|
|
[node name="Money" type="Label" parent="HBoxContainer/Info/MoneyContainer" unique_id=390003475]
|
||
|
|
layout_mode = 2
|
||
|
|
text = "$0"
|
||
|
|
label_settings = SubResource("LabelSettings_qhv1l")
|
||
|
|
|
||
|
|
[node name="TechTree" type="HBoxContainer" parent="HBoxContainer" unique_id=190914575]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 10
|
||
|
|
size_flags_vertical = 4
|
||
|
|
|
||
|
|
[node name="Blueprints" type="Button" parent="HBoxContainer/TechTree" unique_id=910784690]
|
||
|
|
custom_minimum_size = Vector2(150, 0)
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Real Estate Market"
|
||
|
|
|
||
|
|
[node name="BlueprintsContainer" type="PanelContainer" parent="." unique_id=203025650]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
top_level = true
|
||
|
|
layout_mode = 1
|
||
|
|
anchors_preset = 10
|
||
|
|
anchor_right = 1.0
|
||
|
|
offset_top = -300.0
|
||
|
|
grow_horizontal = 2
|
||
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_qhv1l")
|
||
|
|
|
||
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="BlueprintsContainer" unique_id=760987938]
|
||
|
|
layout_mode = 2
|
||
|
|
theme_override_constants/separation = 40
|
||
|
|
|
||
|
|
[node name="Walls" type="VBoxContainer" parent="BlueprintsContainer/HBoxContainer" unique_id=412374904]
|
||
|
|
layout_mode = 2
|
||
|
|
alignment = 1
|
||
|
|
|
||
|
|
[node name="Label" type="Label" parent="BlueprintsContainer/HBoxContainer/Walls" unique_id=1668814316]
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Walls - $1"
|
||
|
|
label_settings = SubResource("LabelSettings_eu1vu")
|
||
|
|
horizontal_alignment = 1
|
||
|
|
|
||
|
|
[node name="StartWalls" type="Button" parent="BlueprintsContainer/HBoxContainer/Walls" unique_id=645460925]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
custom_minimum_size = Vector2(150, 150)
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_vertical = 6
|
||
|
|
theme_override_colors/font_color = Color(1, 0, 0, 1)
|
||
|
|
text = "Place Walls"
|
||
|
|
|
||
|
|
[node name="StopWalls" type="Button" parent="BlueprintsContainer/HBoxContainer/Walls" unique_id=2066303633]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
visible = false
|
||
|
|
custom_minimum_size = Vector2(150, 150)
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_vertical = 6
|
||
|
|
theme_override_colors/font_color = Color(1, 0, 0, 1)
|
||
|
|
text = "Stop Placing
|
||
|
|
Walls"
|
||
|
|
|
||
|
|
[node name="BasicTiles" type="VBoxContainer" parent="BlueprintsContainer/HBoxContainer" unique_id=1403203958]
|
||
|
|
layout_mode = 2
|
||
|
|
theme_override_constants/separation = 16
|
||
|
|
alignment = 1
|
||
|
|
|
||
|
|
[node name="Label" type="Label" parent="BlueprintsContainer/HBoxContainer/BasicTiles" unique_id=1978827830]
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Basic Tiles - $2"
|
||
|
|
label_settings = SubResource("LabelSettings_j4kb6")
|
||
|
|
horizontal_alignment = 1
|
||
|
|
|
||
|
|
[node name="GridContainer" type="GridContainer" parent="BlueprintsContainer/HBoxContainer/BasicTiles" unique_id=219963427]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_vertical = 6
|
||
|
|
theme_override_constants/h_separation = 10
|
||
|
|
theme_override_constants/v_separation = 10
|
||
|
|
columns = 2
|
||
|
|
|
||
|
|
[node name="UpTurn" parent="BlueprintsContainer/HBoxContainer/BasicTiles/GridContainer" unique_id=1363157270 instance=ExtResource("2_eu1vu")]
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="RightTurn" parent="BlueprintsContainer/HBoxContainer/BasicTiles/GridContainer" unique_id=1688209745 instance=ExtResource("3_7r4kk")]
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="DownTurn" parent="BlueprintsContainer/HBoxContainer/BasicTiles/GridContainer" unique_id=269046840 instance=ExtResource("4_c56vf")]
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="LeftTurn" parent="BlueprintsContainer/HBoxContainer/BasicTiles/GridContainer" unique_id=1788133401 instance=ExtResource("5_dxd6m")]
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="Buildings" type="HBoxContainer" parent="BlueprintsContainer/HBoxContainer" unique_id=86083788]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 3
|
||
|
|
|
||
|
|
[node name="Building 1" type="VBoxContainer" parent="BlueprintsContainer/HBoxContainer/Buildings" unique_id=1903803082]
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="Label" type="Label" parent="BlueprintsContainer/HBoxContainer/Buildings/Building 1" unique_id=1748038090]
|
||
|
|
layout_mode = 2
|
||
|
|
text = "$5"
|
||
|
|
label_settings = SubResource("LabelSettings_c56vf")
|
||
|
|
horizontal_alignment = 1
|
||
|
|
|
||
|
|
[node name="BuildingSelector" parent="BlueprintsContainer/HBoxContainer/Buildings/Building 1" unique_id=133308872 instance=ExtResource("6_7r4kk")]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_vertical = 6
|
||
|
|
|
||
|
|
[connection signal="pressed" from="HBoxContainer/Controls/Play" to="." method="_on_play_pressed"]
|
||
|
|
[connection signal="pressed" from="HBoxContainer/Controls/Pause" to="." method="_on_pause_pressed"]
|
||
|
|
[connection signal="pressed" from="HBoxContainer/TechTree/Blueprints" to="." method="_on_blueprints_pressed"]
|
||
|
|
[connection signal="pressed" from="BlueprintsContainer/HBoxContainer/Walls/StartWalls" to="." method="_on_walls_pressed"]
|
||
|
|
[connection signal="pressed" from="BlueprintsContainer/HBoxContainer/Walls/StopWalls" to="." method="_on_walls_pressed"]
|
||
|
|
[connection signal="tile_selected" from="BlueprintsContainer/HBoxContainer/BasicTiles/GridContainer/UpTurn" to="." method="handle_tile_selected"]
|
||
|
|
[connection signal="tile_selected" from="BlueprintsContainer/HBoxContainer/BasicTiles/GridContainer/RightTurn" to="." method="handle_tile_selected"]
|
||
|
|
[connection signal="tile_selected" from="BlueprintsContainer/HBoxContainer/BasicTiles/GridContainer/DownTurn" to="." method="handle_tile_selected"]
|
||
|
|
[connection signal="tile_selected" from="BlueprintsContainer/HBoxContainer/BasicTiles/GridContainer/LeftTurn" to="." method="handle_tile_selected"]
|
||
|
|
[connection signal="select_building" from="BlueprintsContainer/HBoxContainer/Buildings/Building 1/BuildingSelector" to="." method="handle_building_selected"]
|