19 lines
362 B
GDScript3
Raw Normal View History

2026-04-13 11:34:00 -05:00
class_name Turn extends Tile
@export var direction: Board.Direction
@onready var highlight: Panel = %Highlight
func handle_turn_mouse_entered() -> void:
2026-04-13 11:34:00 -05:00
highlight.show()
func handle_turn_mouse_exited() -> void:
2026-04-13 11:34:00 -05:00
highlight.hide()
func handle_gui_input(event: InputEvent):
if event.is_action_pressed("select") and !is_placing:
2026-04-13 11:34:00 -05:00
tile_selected.emit(self)