Current game node structure:
. PopupLayer (CanvasLayer)
... EscapeMenu_PP (PopupPanel, Layer=2, instanced as a scene)
... SaveBTN (Button)
... Load_BTN (Button)
So when I hit the ESC key, the EscapeMenu_PP shows. It's about 300 pixels wide and 500 pixels tall and shows up above the TileMap, and doesn't cover the entire TileMap (game screen). However mouse inputs still "go-through" (pass?) this panel node and interact with the Camera2D.gd script.
For instance, in the Camera2D.gd script, I check for things like:
. if event is InputEventMouseButton:
.. # middle click detected and do action...
.. # scroll wheel detected and do action... (e.g. zooming)
. if event is InputEventMouseMotion:
.. # used to implement "dragging" map...
Each of the above input actions still happen when I'm clicking/interacting with the EscapeMenu_PP panel. For instance, with the mouse in the panel, if I scroll the mouse wheel the zoom functionality on the map still occurs
Here is the breakdown of mouse filters in the inspector (referenced from above node structure):
... snip ...
.. CenterContainer (filter=Stop)
... EscapeMenu_PP (filter=Stop)
. Panel (filter=Stop)
I reviewed this, but didn't quite make sense of it, or if it applies:
My main question is how to stop (mouse) input events of going through the popup panel?