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