You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Merge pull request #62827 from fire-forge/ok-cancel
Add `ok_button_text` to AcceptDialog and `cancel_button_text` to ConfirmationDialog
This commit is contained in:
@@ -1688,7 +1688,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
|
||||
name_dialog->register_text_enter(name);
|
||||
|
||||
error_dialog = memnew(ConfirmationDialog);
|
||||
error_dialog->get_ok_button()->set_text(TTR("Close"));
|
||||
error_dialog->set_ok_button_text(TTR("Close"));
|
||||
error_dialog->set_title(TTR("Error!"));
|
||||
add_child(error_dialog);
|
||||
|
||||
@@ -1696,7 +1696,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
|
||||
|
||||
blend_editor.dialog = memnew(AcceptDialog);
|
||||
add_child(blend_editor.dialog);
|
||||
blend_editor.dialog->get_ok_button()->set_text(TTR("Close"));
|
||||
blend_editor.dialog->set_ok_button_text(TTR("Close"));
|
||||
blend_editor.dialog->set_hide_on_ok(true);
|
||||
VBoxContainer *blend_vb = memnew(VBoxContainer);
|
||||
blend_editor.dialog->add_child(blend_vb);
|
||||
|
||||
Reference in New Issue
Block a user