I am relatively new to godot and programming in general, so excuse my lack of knowledge.
Straight to the point:
I have a signal "mouseoverchild" with arguments name (string) and state (bool).
The signal is emitted from a child node whenever the mouse enters or leaves said child node.
In the root node's script, I have created a class button with variables deployed (bool) and mouse_over (bool).
In the root node, I have a function onmouseoverchild(name, state) connected to the signal from the children of the root node. What it is supposed to do is take the object of the class button, whose name is the same as the argument "name," and change its "deployed" to the argument "state."
How do I do that without having to do case by case scenarios? Is there even a way?
I tried to look it up in the documentation, but didn't find anything, because I didn't know what to look for.
Please ask for details if you need any - though I can't assure you I'll be able to provide them
Thank you for taking your time to read this question of mine.