From edade7db23675d2d4d4e4d36543b2c4fbcc3dffd Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 15 Sep 2023 02:20:57 +0200 Subject: [PATCH] Clarify filtering by node type and group in the Scene tree dock This functionality has been available since 4.0, but was difficult to discover since there was no tooltip and the placeholder didn't mention it. --- editor/scene_tree_dock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index c91f1599ed81..d2dab0709042 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -3841,7 +3841,8 @@ SceneTreeDock::SceneTreeDock(Node *p_scene_root, EditorSelection *p_editor_selec // The "Filter Nodes" text input above the Scene Tree Editor. filter = memnew(LineEdit); filter->set_h_size_flags(SIZE_EXPAND_FILL); - filter->set_placeholder(TTR("Filter Nodes")); + filter->set_placeholder(TTR("Filter: name, t:type, g:group")); + filter->set_tooltip_text(TTR("Filter nodes by entering a part of their name, type (if prefixed with \"type:\" or \"t:\")\nor group (if prefixed with \"group:\" or \"g:\"). Filtering is case-insensitive.")); filter_hbc->add_child(filter); filter->add_theme_constant_override("minimum_character_width", 0); filter->connect("text_changed", callable_mp(this, &SceneTreeDock::_filter_changed));