mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Added "allow_reselect" property to ItemList and enabled it for the method/help lists.
(cherry picked from commit 4dbf6ac1b8
)
This commit is contained in:
parent
4bdcee2b9d
commit
9fb843db06
4 changed files with 30 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue