Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Amateur.game.dev. |
I’m not new to Godot but this is new to me. I am using a popup menu with a custom StyleBox; it disappears when I click on the menu itself, not a button. This is troublesome as it is a pause menu - the game doesn’t unpause when the popup disappears and I can’t get it to re-appear when clicking “Esc” or pause. Nothing in my code would cause this to happen and I tried making it exclusive, still not changing a thing.
I use .show() in my script to show the popup, but it doesn’t work with .popup() either way. Any help would be appreciated.
Edit: This is a bug and is peristent in 3.4 as well as 3.5.1 (latest release)
Solved: https://github.com/godotengine/godot/issues/70650Popup menu disappears when clicked, tested on multiple versions. · Issue #70650 · godotengine/godot · GitHub
I think the PopupMenu is bugged.
I tested it with a project with nothing but a blank PopupMenu and it disappears when you click on it.
I could not get it to not disappear except with set_block_signals(true)
and that eliminates any usefulness of the control.
LeslieS | 2022-12-26 05:47