aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scalpel/settings.h
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/settings.h
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/settings.h')
-rw-r--r--engines/sherlock/scalpel/settings.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/engines/sherlock/scalpel/settings.h b/engines/sherlock/scalpel/settings.h
index ff2e647a62..9144e9d420 100644
--- a/engines/sherlock/scalpel/settings.h
+++ b/engines/sherlock/scalpel/settings.h
@@ -35,12 +35,36 @@ class Settings {
private:
SherlockEngine *_vm;
- Settings(SherlockEngine *vm) : _vm(vm) {}
+ Settings(SherlockEngine *vm) : _vm(vm) {
+ _hotkeyExit = 0;
+ _hotkeyMusic = 0;
+ _hotkeyPortraits = 0;
+ _hotkeyNewFontStyle = 0;
+ _hotkeySoundEffects = 0;
+ _hotkeyWindows = 0;
+ _hotkeyAutoHelp = 0;
+ _hotkeyVoices = 0;
+ _hotkeyFade = 0;
+
+ memset(_hotkeysIndexed, 0, sizeof(_hotkeysIndexed));
+ }
+
+ byte _hotkeyExit;
+ byte _hotkeyMusic;
+ byte _hotkeyPortraits;
+ byte _hotkeyNewFontStyle;
+ byte _hotkeySoundEffects;
+ byte _hotkeyWindows;
+ byte _hotkeyAutoHelp;
+ byte _hotkeyVoices;
+ byte _hotkeyFade;
+
+ byte _hotkeysIndexed[12];
/**
* Draws the interface for the settings window
*/
- void drawInteface(bool flag);
+ void drawInterface(bool flag);
/**
* Draws the buttons for the settings dialog