Fixed ‘CreateNewAnimation’ window wrong size.
This commit is contained in:
parent
7e5d9ed461
commit
a89658fdb8
1 changed files with 7 additions and 8 deletions
|
@ -1377,19 +1377,18 @@ AnimationPlayerEditor::AnimationPlayerEditor(EditorNode *p_editor) {
|
|||
name_dialog->set_title(TTR("Create New Animation"));
|
||||
name_dialog->set_hide_on_ok(false);
|
||||
add_child(name_dialog);
|
||||
name = memnew(LineEdit);
|
||||
name_dialog->add_child(name);
|
||||
name->set_position(Point2(18, 30));
|
||||
name->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, 10);
|
||||
name_dialog->register_text_enter(name);
|
||||
VBoxContainer *vb = memnew(VBoxContainer);
|
||||
name_dialog->add_child(vb);
|
||||
|
||||
l = memnew(Label);
|
||||
l->set_text(TTR("Animation Name:"));
|
||||
l->set_position(Point2(10, 10));
|
||||
|
||||
name_dialog->add_child(l);
|
||||
vb->add_child(l);
|
||||
name_title = l;
|
||||
|
||||
name = memnew(LineEdit);
|
||||
vb->add_child(name);
|
||||
name_dialog->register_text_enter(name);
|
||||
|
||||
error_dialog = memnew(ConfirmationDialog);
|
||||
error_dialog->get_ok()->set_text(TTR("Close"));
|
||||
//error_dialog->get_cancel()->set_text("Close");
|
||||
|
|
Loading…
Reference in a new issue