Rename Control PRESET_WIDE to PRESET_FULL_RECT
This commit is contained in:
@@ -2562,19 +2562,19 @@ ProjectManager::ProjectManager() {
|
||||
|
||||
EditorFileDialog::set_default_show_hidden_files(EditorSettings::get_singleton()->get("filesystem/file_dialog/show_hidden_files"));
|
||||
|
||||
set_anchors_and_offsets_preset(Control::PRESET_WIDE);
|
||||
set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
set_theme(create_custom_theme());
|
||||
|
||||
set_anchors_and_offsets_preset(Control::PRESET_WIDE);
|
||||
set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
|
||||
Panel *panel = memnew(Panel);
|
||||
add_child(panel);
|
||||
panel->set_anchors_and_offsets_preset(Control::PRESET_WIDE);
|
||||
panel->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
panel->add_theme_style_override("panel", get_theme_stylebox(SNAME("Background"), SNAME("EditorStyles")));
|
||||
|
||||
VBoxContainer *vb = memnew(VBoxContainer);
|
||||
panel->add_child(vb);
|
||||
vb->set_anchors_and_offsets_preset(Control::PRESET_WIDE, Control::PRESET_MODE_MINSIZE, 8 * EDSCALE);
|
||||
vb->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT, Control::PRESET_MODE_MINSIZE, 8 * EDSCALE);
|
||||
|
||||
Control *center_box = memnew(Control);
|
||||
center_box->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
@@ -2582,7 +2582,7 @@ ProjectManager::ProjectManager() {
|
||||
|
||||
tabs = memnew(TabContainer);
|
||||
center_box->add_child(tabs);
|
||||
tabs->set_anchors_and_offsets_preset(Control::PRESET_WIDE);
|
||||
tabs->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
tabs->connect("tab_changed", callable_mp(this, &ProjectManager::_on_tab_changed));
|
||||
|
||||
local_projects_hb = memnew(HBoxContainer);
|
||||
|
||||
Reference in New Issue
Block a user