From dc3c3a84fde54058a3b9a379e96862104adadcc6 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sat, 30 Jan 2016 14:03:38 +0100 Subject: SHERLOCK: SS: make settings multilingual Also make it possible to somewhat easily have hotkeys within the button text itself and not just having to use the very first button text character as hotkey. --- engines/sherlock/scalpel/scalpel_talk.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/sherlock/scalpel/scalpel_talk.cpp') diff --git a/engines/sherlock/scalpel/scalpel_talk.cpp b/engines/sherlock/scalpel/scalpel_talk.cpp index 2c447b09ab..f82ad099aa 100644 --- a/engines/sherlock/scalpel/scalpel_talk.cpp +++ b/engines/sherlock/scalpel/scalpel_talk.cpp @@ -703,18 +703,18 @@ void ScalpelTalk::drawInterface() { Common::String fixedText_Down = fixedText.getText(kFixedText_Window_Down); screen.makeButton(Common::Rect(99, CONTROLS_Y, 139, CONTROLS_Y + 10), - 119 - screen.stringWidth(fixedText_Exit) / 2, fixedText_Exit); + 119, fixedText_Exit); screen.makeButton(Common::Rect(140, CONTROLS_Y, 180, CONTROLS_Y + 10), - 159 - screen.stringWidth(fixedText_Up) / 2, fixedText_Up); + 159, fixedText_Up); screen.makeButton(Common::Rect(181, CONTROLS_Y, 221, CONTROLS_Y + 10), - 200 - screen.stringWidth(fixedText_Down) / 2, fixedText_Down); + 200, fixedText_Down); } else { Common::String fixedText_PressKeyToContinue = fixedText.getText(kFixedText_PressKey_ToContinue); Common::String fixedText_PressKeyToContinueHotkey = fixedText.getText(kFixedText_PressKey_ToContinueHotkey); int fixedText_PressKeyToContinueLen = screen.stringWidth(fixedText_PressKeyToContinue); screen.makeButton(Common::Rect(46, CONTROLS_Y, 273, CONTROLS_Y + 10), - 160 - fixedText_PressKeyToContinueLen / 2, fixedText_PressKeyToContinue); + 160, fixedText_PressKeyToContinue); screen.gPrint(Common::Point(160 - fixedText_PressKeyToContinueLen / 2, CONTROLS_Y), COMMAND_FOREGROUND, "%s", fixedText_PressKeyToContinueHotkey.c_str()); } -- cgit v1.2.3