Merge pull request #13031 from YeldhamDev/dock_label

Added a label to the Dock Positioner
This commit is contained in:
Rémi Verschelde 2017-11-19 18:07:59 +01:00 committed by GitHub
commit 3c5ce7cd85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4800,7 +4800,12 @@ EditorNode::EditorNode() {
dock_tab_move_left->set_focus_mode(Control::FOCUS_NONE); dock_tab_move_left->set_focus_mode(Control::FOCUS_NONE);
dock_tab_move_left->connect("pressed", this, "_dock_move_left"); dock_tab_move_left->connect("pressed", this, "_dock_move_left");
dock_hb->add_child(dock_tab_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 = memnew(ToolButton);
dock_tab_move_right->set_icon(theme->get_icon("Forward", "EditorIcons")); dock_tab_move_right->set_icon(theme->get_icon("Forward", "EditorIcons"));
dock_tab_move_right->set_focus_mode(Control::FOCUS_NONE); dock_tab_move_right->set_focus_mode(Control::FOCUS_NONE);