Display version information in the editor at all times
This closes #27811.
This commit is contained in:
parent
5dae2ea777
commit
dee9e9dc62
|
@ -6262,6 +6262,13 @@ EditorNode::EditorNode() {
|
||||||
bottom_panel_hb_editors = memnew(HBoxContainer);
|
bottom_panel_hb_editors = memnew(HBoxContainer);
|
||||||
bottom_panel_hb_editors->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
bottom_panel_hb_editors->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||||
bottom_panel_hb->add_child(bottom_panel_hb_editors);
|
bottom_panel_hb->add_child(bottom_panel_hb_editors);
|
||||||
|
|
||||||
|
version_label = memnew(Label);
|
||||||
|
version_label->set_text(VERSION_FULL_CONFIG);
|
||||||
|
// Fade out the version label to be less prominent, but still readable
|
||||||
|
version_label->set_self_modulate(Color(1, 1, 1, 0.6));
|
||||||
|
bottom_panel_hb->add_child(version_label);
|
||||||
|
|
||||||
bottom_panel_raise = memnew(ToolButton);
|
bottom_panel_raise = memnew(ToolButton);
|
||||||
bottom_panel_raise->set_icon(gui_base->get_icon("ExpandBottomDock", "EditorIcons"));
|
bottom_panel_raise->set_icon(gui_base->get_icon("ExpandBottomDock", "EditorIcons"));
|
||||||
|
|
||||||
|
|
|
@ -431,6 +431,7 @@ private:
|
||||||
HBoxContainer *bottom_panel_hb;
|
HBoxContainer *bottom_panel_hb;
|
||||||
HBoxContainer *bottom_panel_hb_editors;
|
HBoxContainer *bottom_panel_hb_editors;
|
||||||
VBoxContainer *bottom_panel_vb;
|
VBoxContainer *bottom_panel_vb;
|
||||||
|
Label *version_label;
|
||||||
ToolButton *bottom_panel_raise;
|
ToolButton *bottom_panel_raise;
|
||||||
|
|
||||||
void _bottom_panel_raise_toggled(bool);
|
void _bottom_panel_raise_toggled(bool);
|
||||||
|
|
Loading…
Reference in New Issue