Popup close behavior #5135
progsource
started this conversation in
GUI
Replies: 3 comments 1 reply
-
related issue: godotengine/godot#67005 |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can always use |
Beta Was this translation helpful? Give feedback.
1 reply
-
None of this was intuitive at all to understand the differences between popups and windows in the docs and the nuances between them. Looks like I need to be using a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Based on https://github.com/godotengine/godot/blob/1b06b668c9f0c42927a427f9c9057711a4adafe4/scene/gui/popup.cpp#L37-L42
closing of a popup always happens on escape.
I would like it more if a programmer could decide if that is actually desired behavior, instead of forcing it there - or at least decide on the key code.
Also when the game window loses focus, it will close popups
https://github.com/godotengine/godot/blob/cf95056c918b30509c3b181d672e6cfdc971d34f/scene/gui/popup.cpp#L94-L95
I'm not so sure if that is actually always desired behavior in-game.
What do you guys think?
Beta Was this translation helpful? Give feedback.
All reactions