aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/gui.cpp
diff options
context:
space:
mode:
authorBorja Lorente2016-07-26 10:43:02 +0200
committerBorja Lorente2016-08-14 18:59:23 +0200
commite25fb16a3739696fbf85d7666bf013abb40bec24 (patch)
tree105148fb785738e8f2a1d508e75f82597ddfa68e /engines/macventure/gui.cpp
parenta7f2cea37d7ec5101d4b2235168e2b660993258a (diff)
downloadscummvm-rg350-e25fb16a3739696fbf85d7666bf013abb40bec24.tar.gz
scummvm-rg350-e25fb16a3739696fbf85d7666bf013abb40bec24.tar.bz2
scummvm-rg350-e25fb16a3739696fbf85d7666bf013abb40bec24.zip
MACVENTURE: Add scroll to console window
Diffstat (limited to 'engines/macventure/gui.cpp')
-rw-r--r--engines/macventure/gui.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/macventure/gui.cpp b/engines/macventure/gui.cpp
index 6a30985b74..8045c27a51 100644
--- a/engines/macventure/gui.cpp
+++ b/engines/macventure/gui.cpp
@@ -227,7 +227,7 @@ void Gui::initWindows() {
loadBorder(_mainGameWindow, "border_no_scroll_act.bmp", true, findWindowData(kMainGameWindow).type);
// In-game Output Console
- _outConsoleWindow = _wm.addWindow(false, true, true);
+ _outConsoleWindow = _wm.addWindow(true, true, false);
_outConsoleWindow->setDimensions(getWindowData(kOutConsoleWindow).bounds);
_outConsoleWindow->setActive(false);
_outConsoleWindow->setCallback(outConsoleWindowCallback, this);
@@ -1266,15 +1266,19 @@ bool MacVenture::Gui::processMainGameEvents(WindowClick click, Common::Event & e
}
return false;
}
+
bool MacVenture::Gui::processOutConsoleEvents(WindowClick click, Common::Event & event) {
if (_engine->needsClickToContinue())
return true;
- debug("OutConsoleEvent: %d", click);
- if (click == kBorderScrollUp) {
+ if (click == kBorderScrollUp && event.type == Common::EVENT_LBUTTONDOWN) {
_consoleText->scrollUp();
return true;
}
+ if (click == kBorderScrollDown && event.type == Common::EVENT_LBUTTONDOWN) {
+ _consoleText->scrollDown();
+ return true;
+ }
return getWindowData(kOutConsoleWindow).visible;
}