duncgibbs cb0c6e18f5
Some checks failed
linting & formatting / build (push) Failing after 22s
creates all initial tiles and buildings
2026-04-15 10:45:43 -05:00

19 lines
336 B
GDScript

class_name Turn extends Tile
@export var direction: Board.Direction
@onready var highlight: Panel = %Highlight
func handle_mouse_entered() -> void:
highlight.show()
func handle_mouse_exited() -> void:
highlight.hide()
func handle_gui_input(event: InputEvent):
if event.is_action_pressed("select"):
tile_selected.emit(self)