Make script list default wider, minimum narrower

Give more space to the script lists by default, but makes minimum smaller than it was. Unifies script editor and shader editor to use same values.
This commit is contained in:
aXu-AP committed 2024-09-12 14:51:22 +03:00
1 parent 83d54ab2ad
commit 610d98f3ea
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -4107,9 +4107,9 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) {
script_list = memnew(ItemList);
script_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
scripts_vbox->add_child(script_list);
script_list->set_custom_minimum_size(Size2(150, 60) * EDSCALE); //need to give a bit of limit to avoid it from disappearing
script_list->set_custom_minimum_size(Size2(100, 60) * EDSCALE); //need to give a bit of limit to avoid it from disappearing
script_list->set_v_size_flags(SIZE_EXPAND_FILL);
script_split->set_split_offset(70 * EDSCALE);
script_split->set_split_offset(200 * EDSCALE);
_sort_list_on_update = true;
script_list->connect("item_clicked", callable_mp(this, &ScriptEditor::_script_list_clicked), CONNECT_DEFERRED);
script_list->set_allow_rmb_select(true);