Minor cleanup in the Project Manager
This commit is contained in:
parent
f12b47b65e
commit
da45f1bf85
@ -4990,7 +4990,6 @@ EditorNode::EditorNode() {
|
|||||||
main_vbox = memnew(VBoxContainer);
|
main_vbox = memnew(VBoxContainer);
|
||||||
gui_base->add_child(main_vbox);
|
gui_base->add_child(main_vbox);
|
||||||
main_vbox->set_anchors_and_margins_preset(Control::PRESET_WIDE, Control::PRESET_MODE_MINSIZE, 8);
|
main_vbox->set_anchors_and_margins_preset(Control::PRESET_WIDE, Control::PRESET_MODE_MINSIZE, 8);
|
||||||
main_vbox->set_margin(MARGIN_TOP, 5 * EDSCALE);
|
|
||||||
|
|
||||||
menu_hb = memnew(HBoxContainer);
|
menu_hb = memnew(HBoxContainer);
|
||||||
main_vbox->add_child(menu_hb);
|
main_vbox->add_child(menu_hb);
|
||||||
|
@ -1895,13 +1895,11 @@ ProjectManager::ProjectManager() {
|
|||||||
Panel *panel = memnew(Panel);
|
Panel *panel = memnew(Panel);
|
||||||
gui_base->add_child(panel);
|
gui_base->add_child(panel);
|
||||||
panel->set_anchors_and_margins_preset(Control::PRESET_WIDE);
|
panel->set_anchors_and_margins_preset(Control::PRESET_WIDE);
|
||||||
|
panel->add_style_override("panel", gui_base->get_stylebox("Background", "EditorStyles"));
|
||||||
|
|
||||||
VBoxContainer *vb = memnew(VBoxContainer);
|
VBoxContainer *vb = memnew(VBoxContainer);
|
||||||
panel->add_child(vb);
|
panel->add_child(vb);
|
||||||
vb->set_anchors_and_margins_preset(Control::PRESET_WIDE, Control::PRESET_MODE_MINSIZE, 20 * EDSCALE);
|
vb->set_anchors_and_margins_preset(Control::PRESET_WIDE, Control::PRESET_MODE_MINSIZE, 8 * EDSCALE);
|
||||||
vb->set_margin(MARGIN_TOP, 4 * EDSCALE);
|
|
||||||
vb->set_margin(MARGIN_BOTTOM, -4 * EDSCALE);
|
|
||||||
vb->add_constant_override("separation", 15 * EDSCALE);
|
|
||||||
|
|
||||||
String cp;
|
String cp;
|
||||||
cp += 0xA9;
|
cp += 0xA9;
|
||||||
@ -1909,11 +1907,9 @@ ProjectManager::ProjectManager() {
|
|||||||
|
|
||||||
HBoxContainer *top_hb = memnew(HBoxContainer);
|
HBoxContainer *top_hb = memnew(HBoxContainer);
|
||||||
vb->add_child(top_hb);
|
vb->add_child(top_hb);
|
||||||
CenterContainer *ccl = memnew(CenterContainer);
|
|
||||||
Label *l = memnew(Label);
|
Label *l = memnew(Label);
|
||||||
l->set_text(VERSION_NAME + String(" - ") + TTR("Project Manager"));
|
l->set_text(VERSION_NAME + String(" - ") + TTR("Project Manager"));
|
||||||
ccl->add_child(l);
|
top_hb->add_child(l);
|
||||||
top_hb->add_child(ccl);
|
|
||||||
top_hb->add_spacer();
|
top_hb->add_spacer();
|
||||||
l = memnew(Label);
|
l = memnew(Label);
|
||||||
String hash = String(VERSION_HASH);
|
String hash = String(VERSION_HASH);
|
||||||
@ -2060,6 +2056,8 @@ ProjectManager::ProjectManager() {
|
|||||||
settings_hb->set_h_grow_direction(Control::GROW_DIRECTION_BEGIN);
|
settings_hb->set_h_grow_direction(Control::GROW_DIRECTION_BEGIN);
|
||||||
|
|
||||||
language_btn = memnew(OptionButton);
|
language_btn = memnew(OptionButton);
|
||||||
|
language_btn->set_flat(true);
|
||||||
|
language_btn->set_focus_mode(Control::FOCUS_NONE);
|
||||||
|
|
||||||
Vector<String> editor_languages;
|
Vector<String> editor_languages;
|
||||||
List<PropertyInfo> editor_settings_properties;
|
List<PropertyInfo> editor_settings_properties;
|
||||||
|
Loading…
Reference in New Issue
Block a user