diff options
author | Eugene Sandulenko | 2011-01-03 12:38:13 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2011-01-03 12:38:13 +0000 |
commit | 30b40c47459e47f39beece2f089393a2d2cf39aa (patch) | |
tree | 341cbf5d73174dab1093ce4831bcad473c3c4372 /engines/hugo/mouse.cpp | |
parent | 04a9082d0256597e61724e2418f388b61b4ba792 (diff) | |
download | scummvm-rg350-30b40c47459e47f39beece2f089393a2d2cf39aa.tar.gz scummvm-rg350-30b40c47459e47f39beece2f089393a2d2cf39aa.tar.bz2 scummvm-rg350-30b40c47459e47f39beece2f089393a2d2cf39aa.zip |
HUGO: Stub for the top menu
svn-id: r55100
Diffstat (limited to 'engines/hugo/mouse.cpp')
-rw-r--r-- | engines/hugo/mouse.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/hugo/mouse.cpp b/engines/hugo/mouse.cpp index 14ac1d7843..4ed6384b2a 100644 --- a/engines/hugo/mouse.cpp +++ b/engines/hugo/mouse.cpp @@ -276,8 +276,14 @@ void MouseHandler::mouseHandler() { int16 objId = -1; // Current source object // Process cursor over an object or icon - if (gameStatus.inventoryState == I_ACTIVE) // Check inventory icon bar first + if (gameStatus.inventoryState == I_ACTIVE) { // Check inventory icon bar first objId = _vm->_inventory->processInventory(INV_GET, cx, cy); + } else { + if (cy < 5 && cy > 0) { + _vm->_topMenu->runModal(); + } + } + if (objId == -1) // No match, check rest of view objId = _vm->_object->findObject(cx, cy); if (objId >= 0) { // Got a match |