aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/mouse.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2011-01-03 12:38:13 +0000
committerEugene Sandulenko2011-01-03 12:38:13 +0000
commit30b40c47459e47f39beece2f089393a2d2cf39aa (patch)
tree341cbf5d73174dab1093ce4831bcad473c3c4372 /engines/hugo/mouse.cpp
parent04a9082d0256597e61724e2418f388b61b4ba792 (diff)
downloadscummvm-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.cpp8
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