Added a container to EditorNameDialog
This commit is contained in:
parent
b474646de0
commit
d4082a8d92
2 changed files with 5 additions and 2 deletions
|
@ -79,9 +79,11 @@ void EditorNameDialog::_bind_methods() {
|
|||
}
|
||||
|
||||
EditorNameDialog::EditorNameDialog() {
|
||||
makevb = memnew(VBoxContainer);
|
||||
add_child(makevb);
|
||||
name = memnew(LineEdit);
|
||||
add_child(name);
|
||||
move_child(name, get_label()->get_index() + 1);
|
||||
makevb->add_child(name);
|
||||
makevb->move_child(name, get_label()->get_index() + 1);
|
||||
name->set_margin(MARGIN_TOP, 5);
|
||||
name->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 5);
|
||||
name->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, 5);
|
||||
|
|
|
@ -38,6 +38,7 @@ class EditorNameDialog : public ConfirmationDialog {
|
|||
|
||||
GDCLASS(EditorNameDialog, ConfirmationDialog);
|
||||
|
||||
VBoxContainer *makevb;
|
||||
LineEdit *name;
|
||||
|
||||
void _line_gui_input(const InputEvent &p_event);
|
||||
|
|
Loading…
Reference in a new issue