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:
commit
b942c1ffe3
59 changed files with 188 additions and 149 deletions
|
|
@ -1059,7 +1059,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||
}
|
||||
|
||||
external_paths->set_title(TTR("Extract Materials to Resource Files"));
|
||||
external_paths->get_ok_button()->set_text(TTR("Extract"));
|
||||
external_paths->set_ok_button_text(TTR("Extract"));
|
||||
} break;
|
||||
case ACTION_CHOOSE_MESH_SAVE_PATHS: {
|
||||
for (const KeyValue<String, MeshData> &E : mesh_map) {
|
||||
|
|
@ -1112,7 +1112,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||
}
|
||||
|
||||
external_paths->set_title(TTR("Set paths to save meshes as resource files on Reimport"));
|
||||
external_paths->get_ok_button()->set_text(TTR("Set Paths"));
|
||||
external_paths->set_ok_button_text(TTR("Set Paths"));
|
||||
} break;
|
||||
case ACTION_CHOOSE_ANIMATION_SAVE_PATHS: {
|
||||
for (const KeyValue<String, AnimationData> &E : animation_map) {
|
||||
|
|
@ -1158,7 +1158,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||
}
|
||||
|
||||
external_paths->set_title(TTR("Set paths to save animations as resource files on Reimport"));
|
||||
external_paths->get_ok_button()->set_text(TTR("Set Paths"));
|
||||
external_paths->set_ok_button_text(TTR("Set Paths"));
|
||||
|
||||
} break;
|
||||
}
|
||||
|
|
@ -1347,8 +1347,8 @@ SceneImportSettings::SceneImportSettings() {
|
|||
|
||||
scene_import_settings_data = memnew(SceneImportSettingsData);
|
||||
|
||||
get_ok_button()->set_text(TTR("Reimport"));
|
||||
get_cancel_button()->set_text(TTR("Close"));
|
||||
set_ok_button_text(TTR("Reimport"));
|
||||
set_cancel_button_text(TTR("Close"));
|
||||
|
||||
external_paths = memnew(ConfirmationDialog);
|
||||
add_child(external_paths);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue