diff options
author | Paul Gilbert | 2014-03-19 00:15:25 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-19 00:15:25 -0400 |
commit | 7b808b4464fb20ee37325ce5763504eb2c8e80a2 (patch) | |
tree | d9442af59fc0eb373541f0935c676f78c8b9e942 /engines/mads/user_interface.cpp | |
parent | 53eac0d7c045c734e897df1c0246cab185af0463 (diff) | |
download | scummvm-rg350-7b808b4464fb20ee37325ce5763504eb2c8e80a2.tar.gz scummvm-rg350-7b808b4464fb20ee37325ce5763504eb2c8e80a2.tar.bz2 scummvm-rg350-7b808b4464fb20ee37325ce5763504eb2c8e80a2.zip |
MADS: Added inventory add/remove methods
Diffstat (limited to 'engines/mads/user_interface.cpp')
-rw-r--r-- | engines/mads/user_interface.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp index a117ae0d01..5a15293222 100644 --- a/engines/mads/user_interface.cpp +++ b/engines/mads/user_interface.cpp @@ -201,6 +201,7 @@ UserInterface::UserInterface(MADSEngine *vm) : _vm(vm), _dirtyAreas(vm), _v1C = -1; _v1E = -1; _dirtyAreas.resize(50); + _inventoryChanged = false; // Map the user interface to the bottom of the game's screen surface byte *pData = _vm->_screen.getBasePtr(0, MADS_SCENE_HEIGHT); @@ -624,5 +625,14 @@ void UserInterface::inventoryAnim() { _uiSlots.push_back(slot); } +void UserInterface::categoryChanged() { + _v1C = -1; + _vm->_events->initVars(); + _category = CAT_NONE; +} + +void UserInterface::selectObject(int invIndex) { + warning("TODO: selectObject"); +} } // End of namespace MADS |