diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-11-19 18:07:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-19 18:07:59 +0100 |
commit | 3c5ce7cd8598c7e38f3c74ebf8e1b3e9c14fbf6e (patch) | |
tree | 639b429145a9c7ad56f83e8b4bd97eb358f4c8b4 /editor/editor_node.cpp | |
parent | bea607d53e4adff19956adbe09ace170d8cc40b8 (diff) | |
parent | fd52555bbe53d08ec6d1652b6f26b76e4bb8da23 (diff) |
Merge pull request #13031 from YeldhamDev/dock_label
Added a label to the Dock Positioner
Diffstat (limited to 'editor/editor_node.cpp')
-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 27f967cce7..dc747a55c7 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -4800,7 +4800,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); |