From 625de9c9a38026a298177c129751fbd48c274b0a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 21 Aug 2013 01:01:20 +0300 Subject: FULLPIPE: Implement CInventory2::slideIn() --- engines/fullpipe/inventory.cpp | 12 ++++++++++++ engines/fullpipe/inventory.h | 1 + 2 files changed, 13 insertions(+) (limited to 'engines') 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); -- cgit v1.2.3