diff options
author | Micky <micheledevita2@gmail.com> | 2022-09-16 15:10:28 +0200 |
---|---|---|
committer | Micky <micheledevita2@gmail.com> | 2022-10-06 13:36:40 +0200 |
commit | 33092b6f4519a1caef7158efaf3ee7a9c91732f5 (patch) | |
tree | 95c04160dcdc7a7a64add82bac6a8e19dee8da13 /editor/scene_tree_editor.h | |
parent | 9cd62741bb0e2f410b2fb861f66e2cf10fe0334d (diff) | |
download | redot-engine-33092b6f4519a1caef7158efaf3ee7a9c91732f5.tar.gz |
Expose and warn about Node Filters in Scene Tree Dock
Adds "Filter by Type" and "Filter by Group" in the Scene Tree Dock's MenuButton.
Hovering on them displays an useful tooltip.
When selecting these items, the matching parameter is appended to the terms, and the caret is automatically brought to the end.
When typing a filter that cannot be identified, a warning icon is displayed. The reason is explained as a tooltip.
The same options are also quickly available by right-clicking or middle-clicking in the text field.
Diffstat (limited to 'editor/scene_tree_editor.h')
-rw-r--r-- | editor/scene_tree_editor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/scene_tree_editor.h b/editor/scene_tree_editor.h index 8fbc3ab6d6..dcdfead885 100644 --- a/editor/scene_tree_editor.h +++ b/editor/scene_tree_editor.h @@ -62,6 +62,7 @@ class SceneTreeEditor : public Control { ObjectID instance_node; String filter; + String filter_term_warning; AcceptDialog *error = nullptr; AcceptDialog *warning = nullptr; @@ -142,6 +143,7 @@ public: void set_filter(const String &p_filter); String get_filter() const; + String get_filter_term_warning(); void set_undo_redo(Ref<EditorUndoRedoManager> p_undo_redo); void set_display_foreign_nodes(bool p_display); |