generated from krampus/template-godot4
18 lines
335 B
GDScript
18 lines
335 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)
|