[gd_scene format=3 uid="uid://cccowrgelgswj"] [ext_resource type="Script" uid="uid://05c5q1v2nv8p" path="res://Scripts/flow_field_tool.gd" id="1_e7pmn"] [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" node_paths=PackedStringArray("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") 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] offset_right = 296.0 offset_bottom = 572.0 [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" <<<<<<< HEAD [node name="Finalize" type="Button" parent="VBoxContainer" unique_id=1604655281] ======= [node name="FileNameInput" type="LineEdit" parent="VBoxContainer"] >>>>>>> 48b1add (first flow field resource draft) layout_mode = 2 placeholder_text = "level title" alignment = 1 [node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"] layout_mode = 2 [node name="Save" type="Button" parent="VBoxContainer/HBoxContainer2"] layout_mode = 2 size_flags_horizontal = 3 text = "Save" [node name="Load" type="Button" parent="VBoxContainer/HBoxContainer2"] 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, 0.34202, 0.939693, 0, -0.939693, 0.34202, 0, 8.50452, 3.40739) environment = SubResource("Environment_e7pmn") [node name="RayCast3D" type="RayCast3D" parent="CameraFocus/Camera3D" unique_id=1801773920] collision_mask = 64 [node name="RayCast3D" type="RayCast3D" parent="." unique_id=431196612] [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"]