added support for obstacles to levels again

This commit is contained in:
2026-02-07 04:29:19 +11:00
parent 35a0ec30a5
commit f7e478357b
19 changed files with 49 additions and 43 deletions

View File

@@ -342,3 +342,8 @@ func select_in_grid(grid: int) -> void:
for node: FlowNode in flow_field.nodes:
if node.grid_id == grid:
selected.append(node)
func _on_print_ids_pressed() -> void:
for node: FlowNode in selected:
print(node.node_id)

View File

@@ -126,6 +126,10 @@ 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
@@ -201,6 +205,7 @@ grow_vertical = 0
[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"]