How to gui.pick_node() from another gui? (SOLVED)

#1

Hello!
I have several GUIs in my project and I’m trying to figure out how to get a node inside the first GUI from the second GUI. My case is when a node in the first GUI receives a “touch” action I need to check whether another node in the second GUI received the same action. Because the node from the first GUI lais under the node from second GUI and I need to prevent touching action.

Actually I have found a workaround but still I need to know how it can be done for future projects.

0 Likes

#2

Most likely what you want to do is make sure your input stack order is correct (the GUI that’s on top visually also needs to be at the top of the input stack), then return true from on_input() and the input message won’t propagate to the other GUI anymore.

2 Likes

#3

Got it. Thank you very much!

0 Likes