Hello Everybody,
I've 2 instances of a control with a script that enlarges the control when the mouse is over.
But when i hover over the first control and than i click with left mouse button, if i hover on the second control, the event seems to be intercepted only by the first control.
This is the script:
extends Control
func _ready():
connect("mouse_enter",self,"mouse_enter")
connect("mouse_exit",self,"mouse_exit")
pass
func mouse_enter():
self.set_scale(Vector2(1.5,1.5))
func mouse_exit():
self.set_scale(Vector2(1,1))
I've tested adding a print when a controller catch events:
extends Control
func _ready():
connect("mouse_enter",self,"mouse_enter")
connect("mouse_exit",self,"mouse_exit")
pass
func mouse_enter():
self.set_scale(Vector2(1.5,1.5))
func mouse_exit():
self.set_scale(Vector2(1,1))
func _input_event(event):
print("movingOver:",get_name())
there is a way (using a control node) to archieve this ? :
Click on a Control1 - > move mouse over Control2 - > catch mouse_enter ( or another event) on Control2
Thanks in advance,
nthrack