From 1c4095a66a1639ca8579436369042e97d58774c6 Mon Sep 17 00:00:00 2001 From: Micky Date: Mon, 5 Sep 2022 08:22:20 +0200 Subject: Improve Scene Tree Dock's Node filter (Allow multiple terms & more) - Allows more than one parameter to be passed in the "Filter Node" search box, each term separated by spaces. - Grays out any parent Node not matching the search, but still having to be there because a child is. - Adds a `group:` filter. It matches any Node belonging to the passed group. If no argument is passed, it matches all Nodes belonging to any group. It also ignores groups used internally, and its alias is `g`. --- editor/scene_tree_editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/scene_tree_editor.h') diff --git a/editor/scene_tree_editor.h b/editor/scene_tree_editor.h index 0c13ad96cd..28ffa4b11b 100644 --- a/editor/scene_tree_editor.h +++ b/editor/scene_tree_editor.h @@ -78,6 +78,7 @@ class SceneTreeEditor : public Control { void _test_update_tree(); void _update_tree(bool p_scroll_to_selected = false); bool _update_filter(TreeItem *p_parent = nullptr, bool p_scroll_to_selected = false); + bool _item_matches_all_terms(TreeItem *p_item, PackedStringArray p_terms); void _tree_changed(); void _tree_process_mode_changed(); void _node_removed(Node *p_node); -- cgit v1.2.3