diff options
author | Wiwip <lpafortier@gmail.com> | 2022-11-26 15:58:25 +0100 |
---|---|---|
committer | Wiwip <wiwipaf@gmail.com> | 2023-05-10 18:49:35 -0400 |
commit | b08a6084affd1bf657124dc5cda98a6b2cab2fd0 (patch) | |
tree | 8d991ca322deb57e87c59080e54d262ef30add39 /scene/gui/tree.h | |
parent | 7f4687562de6025d28eca30d6e24b03050345012 (diff) | |
download | redot-engine-b08a6084affd1bf657124dc5cda98a6b2cab2fd0.tar.gz |
Modifies the file system dock to use the inline editor instead of a dialog.
*Bugsquad edit:* Closes https://github.com/godotengine/godot-proposals/issues/4933
Diffstat (limited to 'scene/gui/tree.h')
-rw-r--r-- | scene/gui/tree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/tree.h b/scene/gui/tree.h index 75ce6b689d..e556790c43 100644 --- a/scene/gui/tree.h +++ b/scene/gui/tree.h @@ -724,8 +724,9 @@ public: int get_item_offset(TreeItem *p_item) const; Rect2 get_item_rect(TreeItem *p_item, int p_column = -1, int p_button = -1) const; - bool edit_selected(); + bool edit_selected(bool p_force_edit = false); bool is_editing(); + void set_editor_selection(int p_from_line, int p_to_line, int p_from_column = -1, int p_to_column = -1, int p_caret = 0); // First item that starts with the text, from the current focused item down and wraps around. TreeItem *search_item_text(const String &p_find, int *r_col = nullptr, bool p_selectable = false); |