diff options
author | Alexander Tkachev | 2016-07-04 18:36:47 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 2284333b1c9348638ce0255668f4c0abb85aeb84 (patch) | |
tree | a44b9fc032624b240db523de56d76540696f846d /gui/downloaddialog.cpp | |
parent | a5765a339e150952dca27035357bbfb1f88a4718 (diff) | |
download | scummvm-rg350-2284333b1c9348638ce0255668f4c0abb85aeb84.tar.gz scummvm-rg350-2284333b1c9348638ce0255668f4c0abb85aeb84.tar.bz2 scummvm-rg350-2284333b1c9348638ce0255668f4c0abb85aeb84.zip |
GUI: Add lowres support for DownloadDialog's button
No actual translations, though. Should be just "Cancel", because "Cancel
download" is too long for lowres mode.
Diffstat (limited to 'gui/downloaddialog.cpp')
-rw-r--r-- | gui/downloaddialog.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/downloaddialog.cpp b/gui/downloaddialog.cpp index 9c48111153..d9260306e2 100644 --- a/gui/downloaddialog.cpp +++ b/gui/downloaddialog.cpp @@ -53,7 +53,11 @@ DownloadDialog::DownloadDialog(uint32 storageId): _progressBar->setValue(progress); _progressBar->setEnabled(false); _percentLabel = new StaticTextWidget(this, "GlobalOptions_Cloud_DownloadDialog.PercentText", Common::String::format("%u %%", progress)); - _cancelButton = new ButtonWidget(this, "GlobalOptions_Cloud_DownloadDialog.MainButton", _("Cancel download"), 0, kDownloadDialogButtonCmd); + if (g_system->getOverlayWidth() > 320) + _cancelButton = new ButtonWidget(this, "GlobalOptions_Cloud_DownloadDialog.MainButton", _("Cancel download"), 0, kDownloadDialogButtonCmd); + else + _cancelButton = new ButtonWidget(this, "GlobalOptions_Cloud_DownloadDialog.MainButton", _c("Cancel download", "lowres"), 0, kDownloadDialogButtonCmd); + _closeButton = new ButtonWidget(this, "GlobalOptions_Cloud_DownloadDialog.CloseButton", _("OK"), 0, kCloseCmd); refreshWidgets(); |