Relay useful PopupMenu signals through MenuButton #90772
+29
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Really simple relaying of the
PopupMenu
signals throughMenuButton
, just to make hooking them up through the editor simpler, I know that you can easily connect them through code by usingget_popup()
but the fact that the menu button doesn't follow the same convention as most of the UI elements where you can just connect through the editor seems to be a source of confusion for new users (see example 1, 2, 3), these from just a few seconds of googling.The one thing I'm not sure about is the documentation, I didn't want to copy-paste the PopupMenu docs so I just linked to the appropriate signal, but I'm not 100% on the wording or if that's advised.
Let me know if this needs a proposal, figured it was a small enough QOL change that it wouldn't necessarily warrant one.