duncgibbs 99de9e8b40
Some checks failed
linting & formatting / build (push) Failing after 5s
itch.io publish action / build (linux64, x86_64) (push) Failing after 34s
itch.io publish action / build (osx, app) (push) Failing after 30s
itch.io publish action / build (win64, exe) (push) Failing after 31s
initial commit
2026-04-13 11:34:00 -05:00

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()