duncgibbs cb0c6e18f5
Some checks failed
linting & formatting / build (push) Failing after 22s
creates all initial tiles and buildings
2026-04-15 10:45:43 -05:00

21 lines
493 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()