0 votes

I'm designing a fairly complicated wargame in Godot, and one of the things the genre usually requires is nested popups. Here's my situation:

  1. I have a scene which is used for designing an aircraft carrier.
  2. That scene has an exclusive popup which is used to select the quantities of aircraft making up the carrier's air wing.
  3. That popup has an exclusive popup as a child, which is used to select the type of aircraft.

When both popups are showing, clicks on the top popup are delivered to the popup beneath, if there's a component on the popup beneath which can receive clicks. Is that expected behavior? If so, how can I work around it?

in Engine by (97 points)
retagged by

Are you sure that stop mouse is true on the popups?
Also, try doing this, get_parent().move_child(self,get_parent().get_child_count()) or get_parent().move_child(self,0) which ever works.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.