Improve gridmap item placement and UI logic

Enhanced the auto_put_item logic to better identify and place non-goal or excess tiles from the playerboard onto the grid. Updated gridmap and dock scripts for improved cell option handling and UI consistency. Adjusted mesh library item order and main scene cell data for better alignment. Expanded spawn and finish locations for player logic.
This commit is contained in:
2025-10-28 14:05:50 +08:00
parent f9f7d34f80
commit 65be1fcc63
5 changed files with 96 additions and 77 deletions
+5 -4
View File
@@ -638,12 +638,13 @@ func _update_cell_option_buttons():
set_cell_item(position, 0)
func _set(property, value):
if property == "mesh_library":
mesh_library = value
_on_mesh_library_changed()
return true
if property.begins_with("data/cells") and Engine.is_editor_hint():
call_deferred("_emit_grid_updated")
return false
func _emit_grid_updated():
emit_signal("grid_updated")
# Toggle diagonal movement
func set_diagonal_movement(enable: bool):
diagonal_movement = enable