You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -307,8 +307,8 @@ EditorAssetLibraryItemDescription::EditorAssetLibraryItemDescription() {
|
||||
preview_hb->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
||||
previews->add_child(preview_hb);
|
||||
get_ok_button()->set_text(TTR("Download"));
|
||||
get_cancel_button()->set_text(TTR("Close"));
|
||||
set_ok_button_text(TTR("Download"));
|
||||
set_cancel_button_text(TTR("Close"));
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -1293,14 +1293,14 @@ void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const
|
||||
EditorAssetLibraryItemDownload *download_item = _get_asset_in_progress(description->get_asset_id());
|
||||
if (download_item) {
|
||||
if (download_item->can_install()) {
|
||||
description->get_ok_button()->set_text(TTR("Install"));
|
||||
description->set_ok_button_text(TTR("Install"));
|
||||
description->get_ok_button()->set_disabled(false);
|
||||
} else {
|
||||
description->get_ok_button()->set_text(TTR("Downloading..."));
|
||||
description->set_ok_button_text(TTR("Downloading..."));
|
||||
description->get_ok_button()->set_disabled(true);
|
||||
}
|
||||
} else {
|
||||
description->get_ok_button()->set_text(TTR("Download"));
|
||||
description->set_ok_button_text(TTR("Download"));
|
||||
description->get_ok_button()->set_disabled(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user