Skip to content

Commit

Permalink
FULLPIPE: Implement CInventory2::slideIn()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Sep 6, 2013
1 parent 14ca32e commit 625de9c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions engines/fullpipe/inventory.cpp
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions engines/fullpipe/inventory.h
Expand Up @@ -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);
Expand Down

0 comments on commit 625de9c

Please sign in to comment.