class_name IconHover extends Button @export var iconTex: Texture # Called when the node enters the scene tree for the first time. func _ready(): mouse_entered.connect(onHover) mouse_exited.connect(onLeave) func onHover() -> void: icon = iconTex func onLeave() -> void: icon = null