Easy way to make buttons in-accessible when under a pop-up window?

I have a number of buttons in a grid across the screen. Clicking on any of these buttons creates a pop-up window over the top of them with it's own set of buttons/options.

My problem is that as I mouse around this pop-up window I can see the buttons behind the window are being highlighted as well. Is there any automatic system to force focus on the top window only, or do I need to manually disable all the buttons underneath when I detect that I've opened a pop-up window?

1 Answer

1

Ok simple enough to just use GUI.enabled with a test if I have the window open to disable the stuff below.

+1 for sharing the answer.