1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Disable draw tiles mode when pressing one of the tile edit mode buttons

This commit is contained in:
Emmanouil Papadeas 2024-11-30 00:20:41 +02:00
parent f5428952b2
commit 1336819760

View file

@ -162,16 +162,19 @@ func _on_place_tiles_toggled(toggled_on: bool) -> void:
func _on_manual_toggled(toggled_on: bool) -> void:
place_tiles.button_pressed = false
if toggled_on:
tile_editing_mode = TileEditingMode.MANUAL
func _on_auto_toggled(toggled_on: bool) -> void:
place_tiles.button_pressed = false
if toggled_on:
tile_editing_mode = TileEditingMode.AUTO
func _on_stack_toggled(toggled_on: bool) -> void:
place_tiles.button_pressed = false
if toggled_on:
tile_editing_mode = TileEditingMode.STACK