203 lines
7.4 KiB
Plaintext
203 lines
7.4 KiB
Plaintext
[gd_scene load_steps=9 format=3 uid="uid://bpy475nyq5ea1"]
|
|
|
|
[ext_resource type="Script" path="res://Map.gd" id="2_rolej"]
|
|
[ext_resource type="Script" path="res://ScreenShots.gd" id="3_7b3mn"]
|
|
[ext_resource type="Texture2D" uid="uid://1g54esg7yd35" path="res://images/crosshair.png" id="3_i24br"]
|
|
[ext_resource type="Script" path="res://Camera2D.gd" id="4_g4kw0"]
|
|
[ext_resource type="Script" path="res://HUD.gd" id="5_pfkj4"]
|
|
[ext_resource type="Script" path="res://LoadDialog.gd" id="6_0mayr"]
|
|
[ext_resource type="Script" path="res://ToolSelect.gd" id="6_hswn6"]
|
|
[ext_resource type="Script" path="res://SaveDialog.gd" id="6_v2wl8"]
|
|
|
|
[node name="Sim" type="Node2D"]
|
|
|
|
[node name="Map" type="Node2D" parent="."]
|
|
script = ExtResource("2_rolej")
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="Map"]
|
|
script = ExtResource("4_g4kw0")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Map"]
|
|
scale = Vector2(0.2, 0.2)
|
|
texture = ExtResource("3_i24br")
|
|
|
|
[node name="ScreenOverlay" type="CanvasLayer" parent="."]
|
|
|
|
[node name="HUD" type="PanelContainer" parent="ScreenOverlay"]
|
|
anchors_preset = 10
|
|
anchor_right = 1.0
|
|
grow_horizontal = 2
|
|
script = ExtResource("5_pfkj4")
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="ScreenOverlay/HUD"]
|
|
layout_mode = 2
|
|
|
|
[node name="ToolSelect" type="HBoxContainer" parent="ScreenOverlay/HUD/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 2
|
|
script = ExtResource("6_hswn6")
|
|
|
|
[node name="VBoxContainer" type="HBoxContainer" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect"]
|
|
layout_mode = 2
|
|
|
|
[node name="OptionButton" type="OptionButton" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Create Player" type="VBoxContainer" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Create Pool" type="HBoxContainer" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool"]
|
|
layout_mode = 2
|
|
text = "R:"
|
|
|
|
[node name="Red" type="LineEdit" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool"]
|
|
layout_mode = 2
|
|
text = "100"
|
|
placeholder_text = "0"
|
|
|
|
[node name="Label5" type="Label" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool"]
|
|
layout_mode = 2
|
|
text = "G:"
|
|
|
|
[node name="Green" type="LineEdit" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool"]
|
|
layout_mode = 2
|
|
text = "100"
|
|
placeholder_text = "0"
|
|
max_length = 5
|
|
|
|
[node name="Label4" type="Label" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool"]
|
|
layout_mode = 2
|
|
text = "B:"
|
|
|
|
[node name="Blue" type="LineEdit" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool"]
|
|
layout_mode = 2
|
|
text = "100"
|
|
placeholder_text = "0"
|
|
max_length = 5
|
|
|
|
[node name="Create Pool Circle" type="HBoxContainer" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool Circle"]
|
|
layout_mode = 2
|
|
text = "R:"
|
|
|
|
[node name="Red" type="LineEdit" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool Circle"]
|
|
layout_mode = 2
|
|
text = "100"
|
|
placeholder_text = "0"
|
|
max_length = 5
|
|
|
|
[node name="Label5" type="Label" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool Circle"]
|
|
layout_mode = 2
|
|
text = "G:"
|
|
|
|
[node name="Green" type="LineEdit" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool Circle"]
|
|
layout_mode = 2
|
|
text = "100"
|
|
placeholder_text = "0"
|
|
max_length = 5
|
|
|
|
[node name="Label4" type="Label" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool Circle"]
|
|
layout_mode = 2
|
|
text = "B:"
|
|
|
|
[node name="Blue" type="LineEdit" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool Circle"]
|
|
layout_mode = 2
|
|
text = "100"
|
|
placeholder_text = "0"
|
|
max_length = 5
|
|
|
|
[node name="Label2" type="Label" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool Circle"]
|
|
layout_mode = 2
|
|
text = "Radius:"
|
|
|
|
[node name="Radius" type="LineEdit" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool Circle"]
|
|
layout_mode = 2
|
|
text = "200"
|
|
placeholder_text = "0"
|
|
max_length = 5
|
|
|
|
[node name="Label3" type="Label" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool Circle"]
|
|
layout_mode = 2
|
|
text = "Count:"
|
|
|
|
[node name="Count" type="LineEdit" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/Create Pool Circle"]
|
|
layout_mode = 2
|
|
text = "16"
|
|
placeholder_text = "0"
|
|
max_length = 5
|
|
|
|
[node name="Paste" type="OptionButton" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Delete" type="VBoxContainer" parent="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Debug" type="Label" parent="ScreenOverlay/HUD/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
text = "debug"
|
|
|
|
[node name="Right" type="HBoxContainer" parent="ScreenOverlay/HUD/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 10
|
|
|
|
[node name="Decay" type="CheckBox" parent="ScreenOverlay/HUD/HBoxContainer/Right"]
|
|
layout_mode = 2
|
|
text = "Decay"
|
|
|
|
[node name="Load" type="Button" parent="ScreenOverlay/HUD/HBoxContainer/Right"]
|
|
layout_mode = 2
|
|
text = "Load..."
|
|
|
|
[node name="Save" type="Button" parent="ScreenOverlay/HUD/HBoxContainer/Right"]
|
|
layout_mode = 2
|
|
text = "Save..."
|
|
|
|
[node name="LoadDialog" type="ConfirmationDialog" parent="ScreenOverlay"]
|
|
title = "Load"
|
|
position = Vector2i(0, 36)
|
|
size = Vector2i(200, 500)
|
|
script = ExtResource("6_0mayr")
|
|
|
|
[node name="ItemList" type="ItemList" parent="ScreenOverlay/LoadDialog"]
|
|
offset_left = 8.0
|
|
offset_top = 8.0
|
|
offset_right = 192.0
|
|
offset_bottom = 451.0
|
|
|
|
[node name="SaveDialog" type="ConfirmationDialog" parent="ScreenOverlay"]
|
|
mode = 1
|
|
title = "Save"
|
|
initial_position = 4
|
|
ok_button_text = "Save"
|
|
script = ExtResource("6_v2wl8")
|
|
|
|
[node name="LineEdit" type="LineEdit" parent="ScreenOverlay/SaveDialog"]
|
|
offset_left = 8.0
|
|
offset_top = 8.0
|
|
offset_right = 192.0
|
|
offset_bottom = 51.0
|
|
placeholder_text = "Filename"
|
|
|
|
[node name="NewDialog" type="ConfirmationDialog" parent="ScreenOverlay"]
|
|
|
|
[node name="ScreenShots" type="Timer" parent="."]
|
|
wait_time = 60.0
|
|
autostart = true
|
|
script = ExtResource("3_7b3mn")
|
|
|
|
[connection signal="item_selected" from="ScreenOverlay/HUD/HBoxContainer/ToolSelect/VBoxContainer/OptionButton" to="ScreenOverlay/HUD/HBoxContainer/ToolSelect" method="_on_option_button_item_selected"]
|
|
[connection signal="pressed" from="ScreenOverlay/HUD/HBoxContainer/Right/Load" to="ScreenOverlay/HUD" method="_on_load_pressed"]
|
|
[connection signal="pressed" from="ScreenOverlay/HUD/HBoxContainer/Right/Save" to="ScreenOverlay/HUD" method="_on_save_pressed"]
|
|
[connection signal="about_to_popup" from="ScreenOverlay/LoadDialog" to="ScreenOverlay/LoadDialog" method="_on_about_to_popup"]
|
|
[connection signal="confirmed" from="ScreenOverlay/LoadDialog" to="ScreenOverlay/LoadDialog" method="_on_confirmed"]
|
|
[connection signal="about_to_popup" from="ScreenOverlay/SaveDialog" to="ScreenOverlay/SaveDialog" method="_on_about_to_popup"]
|
|
[connection signal="confirmed" from="ScreenOverlay/SaveDialog" to="ScreenOverlay/SaveDialog" method="_on_confirmed"]
|
|
[connection signal="confirmed" from="ScreenOverlay/NewDialog" to="Map" method="_on_new_dialog_confirmed"]
|
|
[connection signal="timeout" from="ScreenShots" to="ScreenShots" method="_on_timeout"]
|