aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scalpel/scalpel_talk.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2016-01-30 14:03:38 +0100
committerMartin Kiewitz2016-01-30 14:04:18 +0100
commitdc3c3a84fde54058a3b9a379e96862104adadcc6 (patch)
tree23ac4ab9dfe8358af1d11e24ee26aced46276239 /engines/sherlock/scalpel/scalpel_talk.cpp
parent42f327e5fddaf73546e14fd9dee7f68b0f7b5619 (diff)
downloadscummvm-rg350-dc3c3a84fde54058a3b9a379e96862104adadcc6.tar.gz
scummvm-rg350-dc3c3a84fde54058a3b9a379e96862104adadcc6.tar.bz2
scummvm-rg350-dc3c3a84fde54058a3b9a379e96862104adadcc6.zip
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.
Diffstat (limited to 'engines/sherlock/scalpel/scalpel_talk.cpp')
-rw-r--r--engines/sherlock/scalpel/scalpel_talk.cpp8
1 files changed, 4 insertions, 4 deletions
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());
}