summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2019-07-22 23:14:51 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2019-07-25 21:05:36 +0200
commitdee9e9dc629556c858e8f2b9b17c10db9876c5c2 (patch)
tree911a219d876cd669834b0cc5993c03c4c309b485 /editor
parent5dae2ea777da5395cf1b1e9a8bc6abc93f6ae6bb (diff)
Display version information in the editor at all times
This closes #27811.
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp7
-rw-r--r--editor/editor_node.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index b59d42a5f7..7231e33f18 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -6262,6 +6262,13 @@ EditorNode::EditorNode() {
bottom_panel_hb_editors = memnew(HBoxContainer);
bottom_panel_hb_editors->set_h_size_flags(Control::SIZE_EXPAND_FILL);
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->set_icon(gui_base->get_icon("ExpandBottomDock", "EditorIcons"));
diff --git a/editor/editor_node.h b/editor/editor_node.h
index 9aee19e6c1..bd7bb58f41 100644
--- a/editor/editor_node.h
+++ b/editor/editor_node.h
@@ -431,6 +431,7 @@ private:
HBoxContainer *bottom_panel_hb;
HBoxContainer *bottom_panel_hb_editors;
VBoxContainer *bottom_panel_vb;
+ Label *version_label;
ToolButton *bottom_panel_raise;
void _bottom_panel_raise_toggled(bool);