summaryrefslogtreecommitdiffstats
path: root/editor/gui/scene_tree_editor.h
diff options
context:
space:
mode:
authorMartin Boué <martbou35@gmail.com>2023-07-08 19:15:17 +0200
committerMartin Boué <martbou35@gmail.com>2023-08-18 18:52:00 +0200
commitbf4cbd41291f453cec4c35ecc380e415af239be4 (patch)
treeb357ca4f255c7405ec0d7ec69b0d020a2b689394 /editor/gui/scene_tree_editor.h
parentc495eb5102278a110c14bbffbf833ed436d1594d (diff)
downloadredot-engine-bf4cbd41291f453cec4c35ecc380e415af239be4.tar.gz
Show only compatible nodes in 'Select a node' window
Fixes https://github.com/godotengine/godot-proposals/issues/7217
Diffstat (limited to 'editor/gui/scene_tree_editor.h')
-rw-r--r--editor/gui/scene_tree_editor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/gui/scene_tree_editor.h b/editor/gui/scene_tree_editor.h
index c99f84912b..9e38b49bd5 100644
--- a/editor/gui/scene_tree_editor.h
+++ b/editor/gui/scene_tree_editor.h
@@ -31,6 +31,7 @@
#ifndef SCENE_TREE_EDITOR_H
#define SCENE_TREE_EDITOR_H
+#include "scene/gui/check_button.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/tree.h"
@@ -61,6 +62,7 @@ class SceneTreeEditor : public Control {
String filter;
String filter_term_warning;
+ bool show_all_nodes = false;
AcceptDialog *error = nullptr;
AcceptDialog *warning = nullptr;
@@ -142,6 +144,7 @@ public:
void set_filter(const String &p_filter);
String get_filter() const;
String get_filter_term_warning();
+ void set_show_all_nodes(bool p_show_all_nodes);
void set_as_scene_tree_dock();
void set_display_foreign_nodes(bool p_display);
@@ -176,12 +179,14 @@ class SceneTreeDialog : public ConfirmationDialog {
VBoxContainer *content = nullptr;
SceneTreeEditor *tree = nullptr;
LineEdit *filter = nullptr;
+ CheckButton *show_all_nodes = nullptr;
LocalVector<TextureRect *> valid_type_icons;
void _select();
void _cancel();
void _selected_changed();
void _filter_changed(const String &p_filter);
+ void _show_all_nodes_changed(bool p_button_pressed);
void _update_theme();
protected: