Make TabContainer use TabBar internally

This commit is contained in:
Michael Alexsander
2022-03-02 11:37:10 -03:00
parent cfd4433bbc
commit a811ebf699
19 changed files with 617 additions and 966 deletions

View File

@ -2566,7 +2566,7 @@ ProjectManager::ProjectManager() {
tabs = memnew(TabContainer);
center_box->add_child(tabs);
tabs->set_anchors_and_offsets_preset(Control::PRESET_WIDE);
tabs->set_tab_alignment(TabContainer::ALIGNMENT_LEFT);
tabs->set_tab_alignment(TabBar::ALIGNMENT_LEFT);
tabs->connect("tab_changed", callable_mp(this, &ProjectManager::_on_tab_changed));
HBoxContainer *projects_hb = memnew(HBoxContainer);