generated from krampus/template-godot4
19 lines
496 B
GDScript
19 lines
496 B
GDScript
class_name Ground extends Tile
|
|
|
|
@onready var highlight: TextureRect = %Highlight
|
|
|
|
#func _ready() -> void:
|
|
#if Engine.is_editor_hint():
|
|
#mouse_entered.connect(handle_ground_mouse_entered)
|
|
#mouse_exited.connect(handle_ground_mouse_exited)
|
|
|
|
func handle_ground_mouse_entered() -> void:
|
|
super.handle_mouse_entered()
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
highlight.show()
|
|
|
|
func handle_ground_mouse_exited() -> void:
|
|
super.handle_mouse_exited()
|
|
self_modulate = Color(1, 1, 1, 1)
|
|
highlight.hide()
|