generated from krampus/template-godot4
12 lines
213 B
GDScript
12 lines
213 B
GDScript
class_name Tile extends Control
|
|
|
|
signal tile_selected(tile: Tile)
|
|
|
|
var highlighted: bool = false
|
|
|
|
func handle_mouse_entered() -> void:
|
|
highlighted = true
|
|
|
|
func handle_mouse_exited() -> void:
|
|
highlighted = false
|