mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 11:44:21 +00:00
-Many fixes to VisualScript, fixed property names, etc.
-Added ability to set/get a field in GetSet, as well as assignment ops -Added a Select node -Fixed update bugs related to variable list and exported properties, closes #9458
This commit is contained in:
parent
e2e73ec906
commit
2a3e00c8c7
36 changed files with 1091 additions and 295 deletions
|
|
@ -509,9 +509,8 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save) {
|
|||
if (p_save) {
|
||||
apply_scripts();
|
||||
}
|
||||
if (current->get_edit_menu()) {
|
||||
memdelete(current->get_edit_menu());
|
||||
}
|
||||
current->clear_edit_menu();
|
||||
|
||||
} else {
|
||||
EditorHelp *help = tab_container->get_child(selected)->cast_to<EditorHelp>();
|
||||
_add_recent_script(help->get_class());
|
||||
|
|
@ -2180,13 +2179,15 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) {
|
|||
|
||||
script_list = memnew(ItemList);
|
||||
list_split->add_child(script_list);
|
||||
script_list->set_custom_minimum_size(Size2(0, 0));
|
||||
script_list->set_custom_minimum_size(Size2(150 * EDSCALE, 100)); //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(140);
|
||||
list_split->set_split_offset(500);
|
||||
//list_split->set_split_offset(500);
|
||||
|
||||
members_overview = memnew(ItemList);
|
||||
list_split->add_child(members_overview);
|
||||
members_overview->set_custom_minimum_size(Size2(0, 0));
|
||||
members_overview->set_custom_minimum_size(Size2(0, 100)); //need to give a bit of limit to avoid it from disappearing
|
||||
members_overview->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||
|
||||
tab_container = memnew(TabContainer);
|
||||
tab_container->add_style_override("panel", p_editor->get_gui_base()->get_stylebox("ScriptPanel", "EditorStyles"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue