[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://Zones/Moat/scn_moat.tscn" id="2_030xf"] [ext_resource type="PackedScene" uid="uid://csq7if8wojp4g" path="res://Zones/Cave/scn_cave.tscn" id="3_xar7e"] [ext_resource type="PackedScene" uid="uid://bssfvyxv5uo1f" path="res://Scenes/FlowField/flow_node.tscn" id="4_50p2d"] [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", "position_x", "position_y", "position_z", "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") visualiser_scene = ExtResource("4_50p2d") raycast = NodePath("CameraFocus/Camera3D/RayCast3D") project_raycast = NodePath("RayCast3D") camera = NodePath("CameraFocus/Camera3D") camera_pivot = NodePath("CameraFocus") position_field = NodePath("Position") position_x = NodePath("Position/x") position_y = NodePath("Position/y") position_z = NodePath("Position/z") 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="SelectAll" type="Button" parent="VBoxContainer" unique_id=1460776735] layout_mode = 2 text = "Select All Nodes" [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="Button2" type="Button" parent="VBoxContainer" unique_id=1458001763] layout_mode = 2 text = "Print Node_IDS" [node name="Position" type="HBoxContainer" parent="." unique_id=1194117729] anchors_preset = -1 anchor_left = 0.4 anchor_right = 0.6 grow_horizontal = 2 [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="Button" type="Button" parent="Position" unique_id=362195148] layout_mode = 2 text = "Set Position" [node name="Button2" type="Button" parent="Position" unique_id=1670413853] layout_mode = 2 text = "Add Offset" [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" [node name="VBoxContainer3" type="VBoxContainer" parent="." unique_id=179301019] anchors_preset = 2 anchor_top = 1.0 anchor_bottom = 1.0 offset_top = -40.0 offset_right = 40.0 grow_vertical = 0 [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/SelectAll" to="." method="_on_select_all_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="pressed" from="VBoxContainer/Button2" to="." method="_on_print_ids_pressed"] [connection signal="pressed" from="Position/Button" to="." method="set_position"] [connection signal="pressed" from="Position/Button2" to="." method="offset_position"] [connection signal="pressed" from="VBoxContainer2/Button" to="." method="load_zone"]