aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-08-21 01:01:20 +0300
committerEugene Sandulenko2013-09-06 14:51:17 +0300
commit625de9c9a38026a298177c129751fbd48c274b0a (patch)
tree70c80280f727d8aec0183091d338a8dcd09d18d3 /engines
parent14ca32ee97c46a155dda057c6c9d3a50528b68f3 (diff)
downloadscummvm-rg350-625de9c9a38026a298177c129751fbd48c274b0a.tar.gz
scummvm-rg350-625de9c9a38026a298177c129751fbd48c274b0a.tar.bz2
scummvm-rg350-625de9c9a38026a298177c129751fbd48c274b0a.zip
FULLPIPE: Implement CInventory2::slideIn()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/inventory.cpp12
-rw-r--r--engines/fullpipe/inventory.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/engines/fullpipe/inventory.cpp b/engines/fullpipe/inventory.cpp
index 8dc856e9c5..c7e1fbcf70 100644
--- a/engines/fullpipe/inventory.cpp
+++ b/engines/fullpipe/inventory.cpp
@@ -110,6 +110,18 @@ void CInventory2::draw() {
warning("STUB: CInventory2::draw()");
}
+void CInventory2::slideIn() {
+ _isInventoryOut = false;
+
+ ExCommand *ex = new ExCommand(0, 17, 65, 0, 0, 0, 1, 0, 0, 0);
+
+ ex->_field_2C = 10;
+ ex->_field_14 = _isInventoryOut;
+ ex->_field_20 = !_isInventoryOut;
+ ex->_excFlags |= 3;
+ ex->postMessage();
+}
+
void CInventory2::slideOut() {
_isInventoryOut = true;
diff --git a/engines/fullpipe/inventory.h b/engines/fullpipe/inventory.h
index 8b7c854e9a..f451b6a5da 100644
--- a/engines/fullpipe/inventory.h
+++ b/engines/fullpipe/inventory.h
@@ -105,6 +105,7 @@ class CInventory2 : public CInventory {
int getSelectedItemId() { return _selectedId < 0 ? 0 : _selectedId; }
int getHoveredItem(Common::Point *point);
+ void slideIn();
void slideOut();
int handleLeftClick(ExCommand *cmd);