190 lines
7.7 KiB
Plaintext
190 lines
7.7 KiB
Plaintext
[gd_scene format=3 uid="uid://cccowrgelgswj"]
|
|
|
|
[ext_resource type="Script" uid="uid://05c5q1v2nv8p" path="res://Scenes/FlowField/flow_field_tool.gd" id="1_e7pmn"]
|
|
[ext_resource type="PackedScene" uid="uid://y1qa1g3ic8sp" path="res://Worlds/GreenPlanet/Levels/Bridge/bridge.tscn" id="2_030xf"]
|
|
[ext_resource type="PackedScene" uid="uid://csq7if8wojp4g" path="res://Worlds/GreenPlanet/Levels/Cave/cave.tscn" id="3_xar7e"]
|
|
|
|
[sub_resource type="Environment" id="Environment_e7pmn"]
|
|
ambient_light_source = 2
|
|
ambient_light_color = Color(0.728822, 0.728822, 0.728822, 1)
|
|
|
|
[node name="FlowFieldTool" type="Node" unique_id=897052359 node_paths=PackedStringArray("zone_holder", "raycast", "project_raycast", "camera", "camera_pivot", "position_field", "x_field", "y_field", "z_field", "x_size_field", "y_size_field", "gap_field", "save_path")]
|
|
script = ExtResource("1_e7pmn")
|
|
zone_list = Array[PackedScene]([ExtResource("2_030xf"), ExtResource("3_xar7e")])
|
|
zone_holder = NodePath("ZoneHolder")
|
|
raycast = NodePath("CameraFocus/Camera3D/RayCast3D")
|
|
project_raycast = NodePath("RayCast3D")
|
|
camera = NodePath("CameraFocus/Camera3D")
|
|
camera_pivot = NodePath("CameraFocus")
|
|
position_field = NodePath("Position")
|
|
x_field = NodePath("Position/x")
|
|
y_field = NodePath("Position/y")
|
|
z_field = NodePath("Position/z")
|
|
x_size_field = NodePath("VBoxContainer/HBoxContainer/x_size")
|
|
y_size_field = NodePath("VBoxContainer/HBoxContainer/y_size")
|
|
gap_field = NodePath("VBoxContainer/HBoxContainer/gap")
|
|
save_path = NodePath("VBoxContainer/FileNameInput")
|
|
metadata/_custom_type_script = "uid://05c5q1v2nv8p"
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1159336300]
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -173.0
|
|
offset_bottom = 572.0
|
|
grow_horizontal = 0
|
|
|
|
[node name="Button" type="Button" parent="VBoxContainer" unique_id=1948996218]
|
|
layout_mode = 2
|
|
text = "Trash FlowField"
|
|
|
|
[node name="Create" type="Button" parent="VBoxContainer" unique_id=1093532280]
|
|
layout_mode = 2
|
|
text = "Create Node"
|
|
|
|
[node name="Delete" type="Button" parent="VBoxContainer" unique_id=118550812]
|
|
layout_mode = 2
|
|
text = "Remove Node"
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer" unique_id=616970402]
|
|
layout_mode = 2
|
|
|
|
[node name="GenerateGrid" type="Button" parent="VBoxContainer/HBoxContainer" unique_id=1844049824]
|
|
layout_mode = 2
|
|
text = "Generate Grid"
|
|
|
|
[node name="x_size" type="LineEdit" parent="VBoxContainer/HBoxContainer" unique_id=1197701586]
|
|
layout_mode = 2
|
|
text = "15"
|
|
placeholder_text = "x_size"
|
|
|
|
[node name="y_size" type="LineEdit" parent="VBoxContainer/HBoxContainer" unique_id=900625826]
|
|
layout_mode = 2
|
|
text = "7"
|
|
placeholder_text = "y_size"
|
|
|
|
[node name="gap" type="LineEdit" parent="VBoxContainer/HBoxContainer" unique_id=1334558468]
|
|
layout_mode = 2
|
|
text = "2.5"
|
|
placeholder_text = "gap"
|
|
|
|
[node name="Connect" type="Button" parent="VBoxContainer" unique_id=330867073]
|
|
layout_mode = 2
|
|
text = "Connect Nodes"
|
|
|
|
[node name="ProjectDownwards" type="Button" parent="VBoxContainer" unique_id=2071376561]
|
|
layout_mode = 2
|
|
text = "Stick node to floor"
|
|
|
|
[node name="MarkGoal" type="Button" parent="VBoxContainer" unique_id=474927781]
|
|
layout_mode = 2
|
|
text = "Toggle Goal"
|
|
|
|
[node name="MarkStart" type="Button" parent="VBoxContainer" unique_id=535844071]
|
|
layout_mode = 2
|
|
text = "Toggle Start"
|
|
|
|
[node name="ToggleTraversable" type="Button" parent="VBoxContainer" unique_id=1888674029]
|
|
layout_mode = 2
|
|
text = "Toggle Traversable"
|
|
|
|
[node name="ToggleBuildable" type="Button" parent="VBoxContainer" unique_id=1196891911]
|
|
layout_mode = 2
|
|
text = "Toggle Buildable"
|
|
|
|
[node name="Extrude" type="Button" parent="VBoxContainer" unique_id=114169861]
|
|
layout_mode = 2
|
|
text = "Extrude"
|
|
|
|
[node name="Calculate" type="Button" parent="VBoxContainer" unique_id=966487363]
|
|
layout_mode = 2
|
|
text = "Calculate"
|
|
|
|
[node name="Finalize" type="Button" parent="VBoxContainer" unique_id=1604655281]
|
|
layout_mode = 2
|
|
text = "Finalize"
|
|
|
|
[node name="FileNameInput" type="LineEdit" parent="VBoxContainer" unique_id=1302446264]
|
|
layout_mode = 2
|
|
placeholder_text = "level title"
|
|
alignment = 1
|
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer" unique_id=426824804]
|
|
layout_mode = 2
|
|
|
|
[node name="Save" type="Button" parent="VBoxContainer/HBoxContainer2" unique_id=128915038]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Save"
|
|
|
|
[node name="Load" type="Button" parent="VBoxContainer/HBoxContainer2" unique_id=397086630]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Load"
|
|
|
|
[node name="Position" type="HBoxContainer" parent="." unique_id=1194117729]
|
|
visible = false
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -323.0
|
|
offset_bottom = 41.0
|
|
grow_horizontal = 0
|
|
|
|
[node name="x" type="LineEdit" parent="Position" unique_id=1634710518]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="y" type="LineEdit" parent="Position" unique_id=2145405236]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="z" type="LineEdit" parent="Position" unique_id=1899083093]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="CameraFocus" type="Node3D" parent="." unique_id=1567712529]
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="CameraFocus" unique_id=1970273041]
|
|
transform = Transform3D(1, 0, 0, 0, 1.0000002, 0, 0, 0, 1.0000002, 0, 0, 3)
|
|
environment = SubResource("Environment_e7pmn")
|
|
|
|
[node name="RayCast3D" type="RayCast3D" parent="CameraFocus/Camera3D" unique_id=1801773920]
|
|
collision_mask = 64
|
|
|
|
[node name="CSGSphere3D" type="CSGSphere3D" parent="CameraFocus" unique_id=275568945]
|
|
|
|
[node name="RayCast3D" type="RayCast3D" parent="." unique_id=431196612]
|
|
|
|
[node name="ZoneHolder" type="Node3D" parent="." unique_id=1127890663]
|
|
|
|
[node name="VBoxContainer2" type="HBoxContainer" parent="." unique_id=1656150952]
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
|
|
[node name="OptionButton" type="OptionButton" parent="VBoxContainer2" unique_id=298744483]
|
|
layout_mode = 2
|
|
|
|
[node name="Button" type="Button" parent="VBoxContainer2" unique_id=1468940506]
|
|
layout_mode = 2
|
|
text = "Load zone"
|
|
|
|
[connection signal="pressed" from="VBoxContainer/Button" to="." method="_on_trash_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/Create" to="." method="_on_create_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/Delete" to="." method="_on_create_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/GenerateGrid" to="." method="_on_generate_grid_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/Connect" to="." method="_on_connect_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/ProjectDownwards" to="." method="_on_project_downwards_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/MarkGoal" to="." method="_on_mark_goal_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/MarkStart" to="." method="_on_mark_start_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/ToggleTraversable" to="." method="_on_toggle_traversable_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/ToggleBuildable" to="." method="_on_toggle_buildable_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/Extrude" to="." method="_on_extrude_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/Calculate" to="." method="_on_calculate_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/Save" to="." method="_on_save_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/Load" to="." method="_on_load_button_pressed"]
|
|
[connection signal="text_changed" from="Position/x" to="." method="_on_x_field_changed"]
|
|
[connection signal="text_changed" from="Position/y" to="." method="_on_y_field_changed"]
|
|
[connection signal="text_changed" from="Position/z" to="." method="_on_z_field_changed"]
|
|
[connection signal="pressed" from="VBoxContainer2/Button" to="." method="load_zone"]
|