-
-
Notifications
You must be signed in to change notification settings - Fork 23.5k
Scene Dock: Simplify Filter Nodes related UI #112343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
The menu options don't mention shorthands ( |
2526c42 to
1d4a807
Compare
|
Updated. The shorthand is now mentioned in the menu item's tooltip. See OP. |
|
Placeholder part is actually covered by #107942 |
| void _filter_gui_input(const Ref<InputEvent> &p_event); | ||
| void _filter_option_selected(int option); | ||
| void _append_filter_options_to(PopupMenu *p_menu, bool p_include_separator = true); | ||
| void _append_filter_options_to(PopupMenu *p_menu, bool p_include_separator); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh the separator argument can be removed and just check whether the menu already has items.
| void SceneTreeDock::_update_tree_menu() { | ||
| PopupMenu *tree_menu = button_tree_menu->get_popup(); | ||
| tree_menu->clear(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just realized that this menu doesn't need to be re-created every time. Only needs to update the checkboxes.
You could change it, but idk if it's within scope of this PR.
The current placeholder is too long for regular usage.
It was introduced to enhance the discoverability of the filtering syntax. But nowadays, the filter options are available in the related menus. It's no longer necessary to use this placeholder I think.
The syntax is already mentioned in the LineEdit's tooltip. It is now also added to the tooltip of the related menu items:
Options in the context menu:
Options in the three-dots menu:
There is also a filters popup menu for middle mouse button click in the LineEdit. This PR makes it created on demand.