2026-04-13 11:34:00 -05:00
|
|
|
class_name Ground extends Tile
|
|
|
|
|
|
|
|
|
|
@onready var highlight: TextureRect = %Highlight
|
|
|
|
|
|
|
|
|
|
#func _ready() -> void:
|
2026-04-15 10:45:43 -05:00
|
|
|
#if Engine.is_editor_hint():
|
|
|
|
|
#mouse_entered.connect(handle_ground_mouse_entered)
|
|
|
|
|
#mouse_exited.connect(handle_ground_mouse_exited)
|
|
|
|
|
|
2026-04-13 11:34:00 -05:00
|
|
|
|
|
|
|
|
func handle_ground_mouse_entered() -> void:
|
|
|
|
|
super.handle_mouse_entered()
|
|
|
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
|
|
|
highlight.show()
|
|
|
|
|
|
2026-04-15 10:45:43 -05:00
|
|
|
|
2026-04-13 11:34:00 -05:00
|
|
|
func handle_ground_mouse_exited() -> void:
|
|
|
|
|
super.handle_mouse_exited()
|
|
|
|
|
self_modulate = Color(1, 1, 1, 1)
|
|
|
|
|
highlight.hide()
|