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:
@@ -1883,7 +1883,7 @@ void ThemeItemEditorDialog::set_edited_theme(const Ref<Theme> &p_theme) {
|
||||
|
||||
ThemeItemEditorDialog::ThemeItemEditorDialog(ThemeTypeEditor *p_theme_type_editor) {
|
||||
set_title(TTR("Manage Theme Items"));
|
||||
get_ok_button()->set_text(TTR("Close"));
|
||||
set_ok_button_text(TTR("Close"));
|
||||
set_hide_on_ok(false); // Closing may require a confirmation in some cases.
|
||||
|
||||
theme_type_editor = p_theme_type_editor;
|
||||
@@ -2733,7 +2733,7 @@ void ThemeTypeEditor::_list_type_selected(int p_index) {
|
||||
void ThemeTypeEditor::_add_type_button_cbk() {
|
||||
add_type_mode = ADD_THEME_TYPE;
|
||||
add_type_dialog->set_title(TTR("Add Item Type"));
|
||||
add_type_dialog->get_ok_button()->set_text(TTR("Add Type"));
|
||||
add_type_dialog->set_ok_button_text(TTR("Add Type"));
|
||||
add_type_dialog->set_include_own_types(false);
|
||||
add_type_dialog->popup_centered(Size2(560, 420) * EDSCALE);
|
||||
}
|
||||
@@ -3269,7 +3269,7 @@ void ThemeTypeEditor::_type_variation_changed(const String p_value) {
|
||||
void ThemeTypeEditor::_add_type_variation_cbk() {
|
||||
add_type_mode = ADD_VARIATION_BASE;
|
||||
add_type_dialog->set_title(TTR("Set Variation Base Type"));
|
||||
add_type_dialog->get_ok_button()->set_text(TTR("Set Base Type"));
|
||||
add_type_dialog->set_ok_button_text(TTR("Set Base Type"));
|
||||
add_type_dialog->set_include_own_types(true);
|
||||
add_type_dialog->popup_centered(Size2(560, 420) * EDSCALE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user