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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user