diff options
author | RedMser <redmser.jj2@gmail.com> | 2023-11-26 16:44:18 +0100 |
---|---|---|
committer | RedMser <redmser.jj2@gmail.com> | 2024-03-31 21:35:10 +0200 |
commit | 9cd30208d6a89462d70bdd6f5bc97dd1119e05b0 (patch) | |
tree | 751d4d97cc5324b7148a7dddde62f3b4dff7bdf2 /editor/gui/scene_tree_editor.h | |
parent | 29b3d9e9e538f0aa8effc8ad8bf19a2915292a89 (diff) | |
download | redot-engine-9cd30208d6a89462d70bdd6f5bc97dd1119e05b0.tar.gz |
Improve SceneTreeEditor usability
- Mark contextually relevant node
- Remember/Clear selection as appropriate
- Scroll to marked/selected node
Diffstat (limited to 'editor/gui/scene_tree_editor.h')
-rw-r--r-- | editor/gui/scene_tree_editor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/gui/scene_tree_editor.h b/editor/gui/scene_tree_editor.h index a869e867b8..c1abdcef8b 100644 --- a/editor/gui/scene_tree_editor.h +++ b/editor/gui/scene_tree_editor.h @@ -157,8 +157,8 @@ public: void set_as_scene_tree_dock(); void set_display_foreign_nodes(bool p_display); - void set_marked(const HashSet<Node *> &p_marked, bool p_selectable = false, bool p_children_selectable = true); - void set_marked(Node *p_marked, bool p_selectable = false, bool p_children_selectable = true); + void set_marked(const HashSet<Node *> &p_marked, bool p_selectable = true, bool p_children_selectable = true); + void set_marked(Node *p_marked, bool p_selectable = true, bool p_children_selectable = true); void set_selected(Node *p_node, bool p_emit_selected = true); Node *get_selected(); void set_can_rename(bool p_can_rename) { can_rename = p_can_rename; } @@ -201,7 +201,7 @@ protected: static void _bind_methods(); public: - void popup_scenetree_dialog(); + void popup_scenetree_dialog(Node *p_selected_node = nullptr, Node *p_marked_node = nullptr, bool p_marked_node_selectable = true, bool p_marked_node_children_selectable = true); void set_valid_types(const Vector<StringName> &p_valid); SceneTreeEditor *get_scene_tree() { return tree; } |