diff options
author | Martin Kiewitz | 2016-01-30 19:22:49 +0100 |
---|---|---|
committer | Martin Kiewitz | 2016-01-30 19:22:49 +0100 |
commit | d79728114ef61dd8761bee2966701667a41daf13 (patch) | |
tree | 2ca15993a7759682dcbfe0bd4a1e0950fd7a050a /engines/sherlock/scalpel/scalpel_user_interface.h | |
parent | 7d20df856703fa57015dfb6b613d9478a8042987 (diff) | |
download | scummvm-rg350-d79728114ef61dd8761bee2966701667a41daf13.tar.gz scummvm-rg350-d79728114ef61dd8761bee2966701667a41daf13.tar.bz2 scummvm-rg350-d79728114ef61dd8761bee2966701667a41daf13.zip |
SHERLOCK: SS: make main buttons multilingual
Also fix graphical issue with "press any key to continue" text
Diffstat (limited to 'engines/sherlock/scalpel/scalpel_user_interface.h')
-rw-r--r-- | engines/sherlock/scalpel/scalpel_user_interface.h | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/engines/sherlock/scalpel/scalpel_user_interface.h b/engines/sherlock/scalpel/scalpel_user_interface.h index c8ecefb3d9..9d021bd827 100644 --- a/engines/sherlock/scalpel/scalpel_user_interface.h +++ b/engines/sherlock/scalpel/scalpel_user_interface.h @@ -33,12 +33,27 @@ class Talk; namespace Scalpel { -extern const char COMMANDS[13]; -extern const char COMMANDS_3DO[13]; extern const int MENU_POINTS[12][4]; extern const int INVENTORY_POINTS[8][3]; +enum { + MAINBUTTON_LOOK = 0, + MAINBUTTON_MOVE, + MAINBUTTON_TALK, + MAINBUTTON_PICKUP, + MAINBUTTON_OPEN, + MAINBUTTON_CLOSE, + MAINBUTTON_INVENTORY, + MAINBUTTON_USE, + MAINBUTTON_GIVE, + MAINBUTTON_JOURNAL, + MAINBUTTON_FILES, + MAINBUTTON_SETUP, + MAINBUTTON_LOADGAME, + MAINBUTTON_SAVEGAME +}; + class Settings; class ScalpelUserInterface: public UserInterface { @@ -49,7 +64,7 @@ private: int _lookHelp; int _help, _oldHelp; int _key, _oldKey; - int _temp, _oldTemp; + int _temp, _oldTemp; // button number (0-11) int _oldLook; bool _keyboardInput; bool _pause; @@ -144,6 +159,24 @@ public: ImageFile *_controlPanel; ImageFile *_controls; int _oldUse; + + byte _hotkeyLook; + byte _hotkeyMove; + byte _hotkeyTalk; + byte _hotkeyPickUp; + byte _hotkeyOpen; + byte _hotkeyClose; + byte _hotkeyInventory; + byte _hotkeyUse; + byte _hotkeyGive; + byte _hotkeyJournal; // not used for 3DO + byte _hotkeyFiles; // not used for 3DO + byte _hotkeySetUp; // SetUp-button is in the spot of Journal for 3DO + byte _hotkeyLoadGame; // 3DO + byte _hotkeySaveGame; // 3DO + + byte _hotkeysIndexed[14]; + public: ScalpelUserInterface(SherlockEngine *vm); virtual ~ScalpelUserInterface(); |