diff options
author | Benjamin Haisch | 2010-10-31 19:38:22 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-20 22:43:10 +0100 |
commit | ce7f9a088c03e502eaf0709b18c6c02937673f9f (patch) | |
tree | 5f5aa4231001aee99e59672c5a4da615c16c2364 /engines/toltecs/toltecs.h | |
parent | 5e154f634a47524fe5d2d260c25812d40802fbc9 (diff) | |
download | scummvm-rg350-ce7f9a088c03e502eaf0709b18c6c02937673f9f.tar.gz scummvm-rg350-ce7f9a088c03e502eaf0709b18c6c02937673f9f.tar.bz2 scummvm-rg350-ce7f9a088c03e502eaf0709b18c6c02937673f9f.zip |
TOLTECS: - Work on the menu system (use strings from resources instead of hardcoded ones)
- ...and load the system strings from the resource on startup
- Only redraw menu screen when required
- Change parameters for some text functions from byte* to const byte*
- Rename some mouse vars
Diffstat (limited to 'engines/toltecs/toltecs.h')
-rw-r--r-- | engines/toltecs/toltecs.h | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/engines/toltecs/toltecs.h b/engines/toltecs/toltecs.h index bcd2c3d234..851e28c263 100644 --- a/engines/toltecs/toltecs.h +++ b/engines/toltecs/toltecs.h @@ -60,6 +60,34 @@ class Sound; // TODO/FIXME: The includes of the Toltecs engine need serious clean-up +enum SysString { + kStrLoadingPleaseWait, + kStrWhatCanIDoForYou, + kStrLoad, + kStrSave, + kStrTextOn, + kStrTextOff, + kStrVoicesOn, + kStrVoicesOff, + kStrVolume, + kStrPlay, + kStrQuit, + kStrLoadGame, + kStrSaveGame, + kStrAdjustVolume, + kStrMaster, + kStrVoices, + kStrMusic, + kStrSoundFx, + kStrBackground, + kStrCancel, + kStrDone, + kStrAreYouSure, + kStrYes, + kStrNo, + kSysStrCount +}; + class ToltecsEngine : public ::Engine { Common::KeyState _keyPressed; @@ -80,6 +108,8 @@ public: Common::Language getLanguage() const; const Common::String& getTargetName() const { return _targetName; } + void setupSysStrings(); + void loadScene(uint resIndex); void updateScreen(); @@ -115,6 +145,8 @@ public: SegmentMap *_segmap; Sound *_sound; + Common::String _sysStrings[kSysStrCount]; + uint _sceneResIndex; int16 _sceneWidth, _sceneHeight; @@ -133,12 +165,14 @@ public: Common::KeyState _keyState; int16 _mouseX, _mouseY; - int16 _mouseCounter; - bool _mouseButtonPressedFlag; + int16 _mouseDblClickTicks; + bool _mouseWaitForRelease; byte _mouseButton; int16 _mouseDisabled; bool _leftButtonDown, _rightButtonDown; + const char *getSysString(int index) const { return _sysStrings[index].c_str(); } + /* Save/load */ enum kReadSaveHeaderError { |