aboutsummaryrefslogtreecommitdiff
path: root/engines/mutationofjb/gui.cpp
diff options
context:
space:
mode:
authorMiroslav Remák2018-07-08 19:21:58 +0200
committerEugene Sandulenko2018-08-25 23:12:01 +0200
commitd2e354b51f637dc2e9b251256b5a017cb41cfe59 (patch)
tree7c0de5e8d35cab5bbab1c821ade92a870f0cb0e4 /engines/mutationofjb/gui.cpp
parent20d6d71ec97c1f7bc4b95ed6c98375b47dff6646 (diff)
downloadscummvm-rg350-d2e354b51f637dc2e9b251256b5a017cb41cfe59.tar.gz
scummvm-rg350-d2e354b51f637dc2e9b251256b5a017cb41cfe59.tar.bz2
scummvm-rg350-d2e354b51f637dc2e9b251256b5a017cb41cfe59.zip
MUTATIONOFJB: Implement scroll buttons.
Diffstat (limited to 'engines/mutationofjb/gui.cpp')
-rw-r--r--engines/mutationofjb/gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mutationofjb/gui.cpp b/engines/mutationofjb/gui.cpp
index 3c8cc66aa8..41ef94af25 100644
--- a/engines/mutationofjb/gui.cpp
+++ b/engines/mutationofjb/gui.cpp
@@ -251,6 +251,10 @@ void Gui::onButtonClicked(ButtonWidget *button) {
if (buttonId <= BUTTON_PICKUP) {
const ActionInfo::Action actions[] = {ActionInfo::Walk, ActionInfo::Talk, ActionInfo::Look, ActionInfo::Use, ActionInfo::PickUp};
_game.setCurrentAction(actions[buttonId]);
+ } else if (buttonId == BUTTON_SCROLL_LEFT) {
+ _game.getGameData().getInventory().scrollLeft();
+ } else if (buttonId == BUTTON_SCROLL_RIGHT) {
+ _game.getGameData().getInventory().scrollRight();
}
}