You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Added a container to EditorNameDialog
(cherry picked from commit d4082a8d92)
This commit is contained in:
committed by
Rémi Verschelde
parent
b0d2b46efb
commit
3d7756df8e
@@ -79,9 +79,11 @@ void EditorNameDialog::_bind_methods() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EditorNameDialog::EditorNameDialog() {
|
EditorNameDialog::EditorNameDialog() {
|
||||||
|
makevb = memnew(VBoxContainer);
|
||||||
|
add_child(makevb);
|
||||||
name = memnew(LineEdit);
|
name = memnew(LineEdit);
|
||||||
add_child(name);
|
makevb->add_child(name);
|
||||||
move_child(name, get_label()->get_index() + 1);
|
makevb->move_child(name, get_label()->get_index() + 1);
|
||||||
name->set_margin(MARGIN_TOP, 5);
|
name->set_margin(MARGIN_TOP, 5);
|
||||||
name->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 5);
|
name->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 5);
|
||||||
name->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, 5);
|
name->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, 5);
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ class EditorNameDialog : public ConfirmationDialog {
|
|||||||
|
|
||||||
OBJ_TYPE(EditorNameDialog, ConfirmationDialog);
|
OBJ_TYPE(EditorNameDialog, ConfirmationDialog);
|
||||||
|
|
||||||
|
VBoxContainer *makevb;
|
||||||
LineEdit *name;
|
LineEdit *name;
|
||||||
|
|
||||||
void _line_input_event(const InputEvent &p_event);
|
void _line_input_event(const InputEvent &p_event);
|
||||||
|
|||||||
Reference in New Issue
Block a user