diff options
author | Martin Kiewitz | 2016-01-30 14:03:38 +0100 |
---|---|---|
committer | Martin Kiewitz | 2016-01-30 14:04:18 +0100 |
commit | dc3c3a84fde54058a3b9a379e96862104adadcc6 (patch) | |
tree | 23ac4ab9dfe8358af1d11e24ee26aced46276239 /engines/sherlock/scalpel/scalpel_inventory.cpp | |
parent | 42f327e5fddaf73546e14fd9dee7f68b0f7b5619 (diff) | |
download | scummvm-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_inventory.cpp')
-rw-r--r-- | engines/sherlock/scalpel/scalpel_inventory.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/sherlock/scalpel/scalpel_inventory.cpp b/engines/sherlock/scalpel/scalpel_inventory.cpp index e19a43238c..6cce32fe53 100644 --- a/engines/sherlock/scalpel/scalpel_inventory.cpp +++ b/engines/sherlock/scalpel/scalpel_inventory.cpp @@ -67,21 +67,21 @@ void ScalpelInventory::drawInventory(InvNewMode mode) { Common::String fixedText_Give = fixedText.getText(kFixedText_Inventory_Give); screen.makeButton(Common::Rect(INVENTORY_POINTS[0][0], CONTROLS_Y1, INVENTORY_POINTS[0][1], - CONTROLS_Y1 + 10), INVENTORY_POINTS[0][2] - screen.stringWidth(fixedText_Exit) / 2, fixedText_Exit); + CONTROLS_Y1 + 10), INVENTORY_POINTS[0][2], fixedText_Exit); screen.makeButton(Common::Rect(INVENTORY_POINTS[1][0], CONTROLS_Y1, INVENTORY_POINTS[1][1], - CONTROLS_Y1 + 10), INVENTORY_POINTS[1][2] - screen.stringWidth(fixedText_Look) / 2, fixedText_Look); + CONTROLS_Y1 + 10), INVENTORY_POINTS[1][2], fixedText_Look); screen.makeButton(Common::Rect(INVENTORY_POINTS[2][0], CONTROLS_Y1, INVENTORY_POINTS[2][1], - CONTROLS_Y1 + 10), INVENTORY_POINTS[2][2] - screen.stringWidth(fixedText_Use) / 2, fixedText_Use); + CONTROLS_Y1 + 10), INVENTORY_POINTS[2][2], fixedText_Use); screen.makeButton(Common::Rect(INVENTORY_POINTS[3][0], CONTROLS_Y1, INVENTORY_POINTS[3][1], - CONTROLS_Y1 + 10), INVENTORY_POINTS[3][2] - screen.stringWidth(fixedText_Give) / 2, fixedText_Give); + CONTROLS_Y1 + 10), INVENTORY_POINTS[3][2], fixedText_Give); screen.makeButton(Common::Rect(INVENTORY_POINTS[4][0], CONTROLS_Y1, INVENTORY_POINTS[4][1], - CONTROLS_Y1 + 10), INVENTORY_POINTS[4][2], "^^"); // 2 arrows pointing to the left + CONTROLS_Y1 + 10), INVENTORY_POINTS[4][2] + 8, "^^"); // 2 arrows pointing to the left screen.makeButton(Common::Rect(INVENTORY_POINTS[5][0], CONTROLS_Y1, INVENTORY_POINTS[5][1], - CONTROLS_Y1 + 10), INVENTORY_POINTS[5][2], "^"); // 1 arrow pointing to the left + CONTROLS_Y1 + 10), INVENTORY_POINTS[5][2] + 4, "^"); // 1 arrow pointing to the left screen.makeButton(Common::Rect(INVENTORY_POINTS[6][0], CONTROLS_Y1, INVENTORY_POINTS[6][1], - CONTROLS_Y1 + 10), INVENTORY_POINTS[6][2], "_"); // 1 arrow pointing to the right + CONTROLS_Y1 + 10), INVENTORY_POINTS[6][2] + 4, "_"); // 1 arrow pointing to the right screen.makeButton(Common::Rect(INVENTORY_POINTS[7][0], CONTROLS_Y1, INVENTORY_POINTS[7][1], - CONTROLS_Y1 + 10), INVENTORY_POINTS[7][2], "__"); // 2 arrows pointing to the right + CONTROLS_Y1 + 10), INVENTORY_POINTS[7][2] + 8, "__"); // 2 arrows pointing to the right if (tempMode == INVENTORY_DONT_DISPLAY) mode = LOOK_INVENTORY_MODE; |