GUI: U32: Code cleanup & misc fixes
- Fix a translation for scumm subtitle settings dialogs.
This commit is contained in:
parent
edec55cf64
commit
840f08d537
5 changed files with 17 additions and 19 deletions
|
@ -86,11 +86,11 @@ MainMenu::~MainMenu() {
|
|||
}
|
||||
|
||||
void MainMenu::init() {
|
||||
_buttons[0] = new GUI::ButtonWidget(this, 0, 0, 1, 1, Common::U32String(""), Common::U32String(""), 0);
|
||||
_buttons[1] = new GUI::ButtonWidget(this, 0, 0, 1, 1, Common::U32String(""), Common::U32String(""), 0);
|
||||
_buttons[2] = new GUI::ButtonWidget(this, 0, 0, 1, 1, Common::U32String(""), Common::U32String(""), 0);
|
||||
_buttons[3] = new GUI::ButtonWidget(this, 0, 0, 1, 1, Common::U32String(""), Common::U32String(""), 0);
|
||||
_buttons[4] = new GUI::ButtonWidget(this, 0, 0, 1, 1, Common::U32String(""), Common::U32String(""), 0);
|
||||
_buttons[0] = new GUI::ButtonWidget(this, 0, 0, 1, 1, Common::U32String(""));
|
||||
_buttons[1] = new GUI::ButtonWidget(this, 0, 0, 1, 1, Common::U32String(""));
|
||||
_buttons[2] = new GUI::ButtonWidget(this, 0, 0, 1, 1, Common::U32String(""));
|
||||
_buttons[3] = new GUI::ButtonWidget(this, 0, 0, 1, 1, Common::U32String(""));
|
||||
_buttons[4] = new GUI::ButtonWidget(this, 0, 0, 1, 1, Common::U32String(""));
|
||||
gotoMenuScreen(kMainMenuScr);
|
||||
}
|
||||
|
||||
|
|
|
@ -2417,10 +2417,9 @@ bool CryOmni3DEngine_Versailles::handleEpigraph(ZonFixedImage *fimg) {
|
|||
if (password.size() >= kEpigraphMaxLetters) {
|
||||
continue;
|
||||
}
|
||||
char keyCodeCheck = keyCode - Common::KEYCODE_a + 'A';
|
||||
if (keyCode >= Common::KEYCODE_a &&
|
||||
keyCode <= Common::KEYCODE_z &&
|
||||
_epigraphContent.contains(keyCodeCheck)) {
|
||||
_epigraphContent.contains((char)(keyCode - Common::KEYCODE_a + 'A'))) {
|
||||
password += keyCode - Common::KEYCODE_a + 'A';
|
||||
} else {
|
||||
continue;
|
||||
|
|
|
@ -316,8 +316,7 @@ void initGraphics(int width, int height, const Graphics::PixelFormat *format) {
|
|||
// Error out on size switch failure
|
||||
if (gfxError & OSystem::kTransactionSizeChangeFailed) {
|
||||
Common::U32String message;
|
||||
message = Common::U32String::format(
|
||||
_("Could not switch to resolution '%dx%d'."), width, height);
|
||||
message = Common::U32String::format(_("Could not switch to resolution '%dx%d'."), width, height);
|
||||
|
||||
GUIErrorMessage(message);
|
||||
error("Could not switch to resolution '%dx%d'.", width, height);
|
||||
|
|
|
@ -609,7 +609,7 @@ void SubtitleSettingsDialog::cycleValue() {
|
|||
_value = 0;
|
||||
|
||||
if (_value == 1 && g_system->getOverlayWidth() <= 320)
|
||||
setInfoText(Common::U32String(_sc("Speech & Subs", "lowres")));
|
||||
setInfoText(_c("Speech & Subs", "lowres"));
|
||||
else
|
||||
setInfoText(_(subtitleDesc[_value]));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue