aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/user_interface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-19 00:15:25 -0400
committerPaul Gilbert2014-03-19 00:15:25 -0400
commit7b808b4464fb20ee37325ce5763504eb2c8e80a2 (patch)
treed9442af59fc0eb373541f0935c676f78c8b9e942 /engines/mads/user_interface.cpp
parent53eac0d7c045c734e897df1c0246cab185af0463 (diff)
downloadscummvm-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.cpp10
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