mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-25 05:07:12 +01:00
Fix prompt dialog title for Animation operations
This commit is contained in:
parent
55a9d5bc55
commit
dea38c63e2
@ -365,6 +365,7 @@ void AnimationPlayerEditor::_animation_new() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
name->set_text(base);
|
name->set_text(base);
|
||||||
|
name_dialog->set_title(TTR("Create New Animation"));
|
||||||
name_dialog->popup_centered(Size2(300, 90));
|
name_dialog->popup_centered(Size2(300, 90));
|
||||||
name->select_all();
|
name->select_all();
|
||||||
name->grab_focus();
|
name->grab_focus();
|
||||||
@ -379,6 +380,7 @@ void AnimationPlayerEditor::_animation_rename() {
|
|||||||
name_title->set_text(TTR("Change Animation Name:"));
|
name_title->set_text(TTR("Change Animation Name:"));
|
||||||
name->set_text(selected_name);
|
name->set_text(selected_name);
|
||||||
name_dialog_op = TOOL_RENAME_ANIM;
|
name_dialog_op = TOOL_RENAME_ANIM;
|
||||||
|
name_dialog->set_title(TTR("Rename Animation"));
|
||||||
name_dialog->popup_centered(Size2(300, 90));
|
name_dialog->popup_centered(Size2(300, 90));
|
||||||
name->select_all();
|
name->select_all();
|
||||||
name->grab_focus();
|
name->grab_focus();
|
||||||
@ -1043,6 +1045,7 @@ void AnimationPlayerEditor::_animation_duplicate() {
|
|||||||
name_title->set_text(TTR("New Animation Name:"));
|
name_title->set_text(TTR("New Animation Name:"));
|
||||||
name->set_text(new_name);
|
name->set_text(new_name);
|
||||||
name_dialog_op = TOOL_DUPLICATE_ANIM;
|
name_dialog_op = TOOL_DUPLICATE_ANIM;
|
||||||
|
name_dialog->set_title(TTR("Duplicate Animation"));
|
||||||
name_dialog->popup_centered(Size2(300, 90));
|
name_dialog->popup_centered(Size2(300, 90));
|
||||||
name->select_all();
|
name->select_all();
|
||||||
name->grab_focus();
|
name->grab_focus();
|
||||||
@ -1733,7 +1736,6 @@ AnimationPlayerEditor::AnimationPlayerEditor(EditorNode *p_editor, AnimationPlay
|
|||||||
add_child(file);
|
add_child(file);
|
||||||
|
|
||||||
name_dialog = memnew(ConfirmationDialog);
|
name_dialog = memnew(ConfirmationDialog);
|
||||||
name_dialog->set_title(TTR("Create New Animation"));
|
|
||||||
name_dialog->set_hide_on_ok(false);
|
name_dialog->set_hide_on_ok(false);
|
||||||
add_child(name_dialog);
|
add_child(name_dialog);
|
||||||
VBoxContainer *vb = memnew(VBoxContainer);
|
VBoxContainer *vb = memnew(VBoxContainer);
|
||||||
|
Loading…
Reference in New Issue
Block a user