diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2017-11-19 03:00:42 -0200 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2017-11-19 03:24:55 -0200 |
commit | fd52555bbe53d08ec6d1652b6f26b76e4bb8da23 (patch) | |
tree | 29face355131d07433e575bbb38e3b56531cc311 | |
parent | 63283eca5542314ea5b71afa1fe39bd48c202a4d (diff) |
Added a label to the Dock Positioner.
-rw-r--r-- | editor/editor_node.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 777aedefd2..055b9a4a33 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -4793,7 +4793,12 @@ EditorNode::EditorNode() { dock_tab_move_left->set_focus_mode(Control::FOCUS_NONE); dock_tab_move_left->connect("pressed", this, "_dock_move_left"); dock_hb->add_child(dock_tab_move_left); - dock_hb->add_spacer(); + + Label *dock_label = memnew(Label); + dock_label->set_text(TTR("Dock Position")); + dock_label->set_h_size_flags(Control::SIZE_EXPAND_FILL); + dock_hb->add_child(dock_label); + dock_tab_move_right = memnew(ToolButton); dock_tab_move_right->set_icon(theme->get_icon("Forward", "EditorIcons")); dock_tab_move_right->set_focus_mode(Control::FOCUS_NONE); |