diff options
author | Alyssa Milburn | 2010-12-08 15:45:22 +0000 |
---|---|---|
committer | Alyssa Milburn | 2010-12-08 15:45:22 +0000 |
commit | 8241b1b3210af3c00220cb7cc365549ad149cd81 (patch) | |
tree | 91bc0791fc876e0aa16c4ca8516a28e3ca82b617 /engines | |
parent | e0a6ecaca9d54723ae0c6957c5dd92171e949dee (diff) | |
download | scummvm-rg350-8241b1b3210af3c00220cb7cc365549ad149cd81.tar.gz scummvm-rg350-8241b1b3210af3c00220cb7cc365549ad149cd81.tar.bz2 scummvm-rg350-8241b1b3210af3c00220cb7cc365549ad149cd81.zip |
MOHAWK: Implement/stub more LB 3 notifications
svn-id: r54832
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 19 | ||||
-rw-r--r-- | engines/mohawk/livingbooks.h | 5 |
2 files changed, 23 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 690dfbdae2..904f99e3a7 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -1017,6 +1017,13 @@ void MohawkEngine_LivingBooks::handleNotify(NotifyEvent &event) { } break; + case kLBNotifyGotoQuit: + debug(2, "kLBNotifyGotoQuit: %d", event.param); + + if (!loadPage(kLBControlMode, 2, 0)) + error("couldn't load quit page"); + break; + case kLBNotifyIntroDone: debug(2, "kLBNotifyIntroDone: %d", event.param); @@ -1058,6 +1065,18 @@ void MohawkEngine_LivingBooks::handleNotify(NotifyEvent &event) { // TODO: show/hide cursor according to parameter? break; + case kLBNotifyPrintPage: + debug(2, "kLBNotifyPrintPage: %d", event.param); + + warning("kLBNotifyPrintPage unimplemented"); + break; + + case kLBNotifyQuit: + debug(2, "kLBNotifyQuit: %d", event.param); + + quitGame(); + break; + default: error("Unknown notification %d (param 0x%04x)", event.type, event.param); } diff --git a/engines/mohawk/livingbooks.h b/engines/mohawk/livingbooks.h index 29dbd70f02..9f33e10054 100644 --- a/engines/mohawk/livingbooks.h +++ b/engines/mohawk/livingbooks.h @@ -149,9 +149,12 @@ enum { kLBNotifyGUIAction = 1, kLBNotifyGoToControls = 2, kLBNotifyChangePage = 3, + kLBNotifyGotoQuit = 4, kLBNotifyIntroDone = 5, kLBNotifyChangeMode = 6, - kLBNotifyCursorChange = 7 + kLBNotifyCursorChange = 7, + kLBNotifyPrintPage = 0xc, + kLBNotifyQuit = 0xd }; class MohawkEngine_LivingBooks; |