stopping input on buttons etc in all scenes EXCEPT the active one

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Robster
:warning: Old Version Published before Godot 3 was released.

Question RE: stopping input on all other scenes.

Godot 2.1.4 stable OSX

I have a game where I have dialogs appear on top of other dialogs. So I can press a button, a dialog (new scene instance) appears above the current scene. I can click into the new scene but I can also click into the original scene. Which is not what I want.

I know I can set the process mode to inherit, stop or process and I have that working but my problem comes when I have multiple screens appearing over the top of each other.

For example:

  • main game (press options button)
  • instance an option scene with other buttons and whatnot. (press help button)
  • instance a help scene with description of what to do etc.

So in this single case I have two scenes loading on top of the original. Yet the buttons underneath can still have their buttons pressed.

I’d like to make a system where I can send a signal and ALL other scenes stop accepting input EXCEPT the one I’m in.

The trick there is determining what to keep active. Should I send a signal that has the name of the current, active scene and the signal should inhibit input on all other scenes? In some kind of loop maybe?

Any help would be greatly appreciated.