Im trying to get this Label object to turn different colors when hovered over, but the 'mouse entered' and 'mouse exited' events arent detecting. Its inside a control node, which has mouse filter pass through. Both the events and the label is connected to the code, so I dont really know what is happening:
(Its not printing so Ik its not a color issue)
extends Label
var def_color: Color = Color(1, 1, 1)
var hover_color: Color = Color(1, 0.77, 0.16)
func _ready() -> void:
self.modulate = def_color
func _on_mouse_entered() -> void:
self.modulate = hover_color
print("Mouse enter")
func _on_mouse_exited() -> void:
self.modulate = def_color
print("Mouse leave")