Popup Menu hides when the game is minimized

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By FelipeRattu

I’m testing a Popup Menu to show up in the game every time the player lose, my game consists is a bunch of mini games switching between themselves as the player wins, as every minigame is a different scene for the popup to appear in all of the scenes i made it a child of a singleton and a canvas node.

Everything works fine but when i minimize the game it hides the popup, i wanna keep the popup til’ player clicks one of the buttons…

Is that something with the singleton behaviour or somehting because i don’t get it :S

A print of my tree:

Node is my singleton

:bust_in_silhouette: Reply From: Zylann

It’s a behaviour of popup menus. The idea of a PopupMenu is similar to a right-click context menu or an application menu bar, which leads to this.

I believe given how you are setting this up with custom controls and all (instead of using PopupMenu functionality), you should use a simpler base control which you show and hide (like Panel).

Thanks dude :smiley:

totally worked, helped a lot!

FelipeRattu | 2019-12-16 10:25