diff options
| author | Michael Alexsander Silva Dias | 2018-02-14 01:24:57 -0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-02-19 22:21:14 +0100 |
| commit | 9fb843db0603cc9ccc0ffedd4c2a9fe61d83572d (patch) | |
| tree | b7f0735eab8aad5db23b6af290f07771d01f9b67 /editor/plugins/script_editor_plugin.cpp | |
| parent | 4bdcee2b9d9bd424d6b3ba1019ee107c0dfc3781 (diff) | |
| download | godot-9fb843db0603cc9ccc0ffedd4c2a9fe61d83572d.tar.gz godot-9fb843db0603cc9ccc0ffedd4c2a9fe61d83572d.tar.zst godot-9fb843db0603cc9ccc0ffedd4c2a9fe61d83572d.zip | |
Added "allow_reselect" property to ItemList and enabled it for the method/help lists.
(cherry picked from commit 4dbf6ac1b890ff6333d1600d2c091baa176b356c)
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index b6658b7b9..9b4bf65ab 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -148,8 +148,6 @@ public: } }; -#define SORT_SCRIPT_LIST - void ScriptEditorQuickOpen::popup(const Vector<String> &p_functions, bool p_dontclear) { popup_centered_ratio(0.6); @@ -2601,11 +2599,13 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) { members_overview = memnew(ItemList); list_split->add_child(members_overview); + members_overview->set_allow_reselect(true); members_overview->set_custom_minimum_size(Size2(0, 90)); //need to give a bit of limit to avoid it from disappearing members_overview->set_v_size_flags(SIZE_EXPAND_FILL); help_overview = memnew(ItemList); list_split->add_child(help_overview); + help_overview->set_allow_reselect(true); help_overview->set_custom_minimum_size(Size2(0, 90)); //need to give a bit of limit to avoid it from disappearing help_overview->set_v_size_flags(SIZE_EXPAND_FILL); |
