You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user