aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-07-12 05:00:25 +0530
committerEugene Sandulenko2019-09-03 17:17:17 +0200
commitee9de9157c078885e0886c117e3c12f631176624 (patch)
tree7285bbcd65e9f61982d5e00188d7b5282ab80678
parentf5b9d417b7b6f2d1a86ba68b22fa84aa04a7992d (diff)
downloadscummvm-rg350-ee9de9157c078885e0886c117e3c12f631176624.tar.gz
scummvm-rg350-ee9de9157c078885e0886c117e3c12f631176624.tar.bz2
scummvm-rg350-ee9de9157c078885e0886c117e3c12f631176624.zip
HDB: Add Menu calls
-rw-r--r--engines/hdb/hdb.cpp4
-rw-r--r--engines/hdb/input.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 72e1aa0a71..534c6225d6 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -251,10 +251,10 @@ void HDBGame::paint() {
switch (_gameState) {
case GAME_TITLE:
- debug(9, "STUB: MENU::DrawTitle required");
+ _menu->drawTitle();
break;
case GAME_MENU:
- warning("STUB: MENU::DrawMenu required");
+ _menu->drawMenu();
break;
case GAME_PLAY:
_gfx->drawPointer();
diff --git a/engines/hdb/input.cpp b/engines/hdb/input.cpp
index 7f37b43be9..fda9431747 100644
--- a/engines/hdb/input.cpp
+++ b/engines/hdb/input.cpp
@@ -66,7 +66,7 @@ void Input::setButtons(uint16 b) {
}
if (g_hdb->getGameState() == GAME_TITLE)
- warning("STUB: setButtons: changeToMenu() required");
+ g_hdb->_menu->changeToMenu();
g_hdb->_sound->playSound(SND_MENU_BACKOUT);
g_hdb->changeGameState();
}
@@ -120,11 +120,11 @@ void Input::stylusDown(int x, int y) {
switch (gs) {
case GAME_TITLE:
- warning("STUB: Menu: changeToMenu required");
+ g_hdb->_menu->changeToMenu();
g_hdb->changeGameState();
break;
case GAME_MENU:
- warning("STUB: Menu: processInput required");
+ g_hdb->_menu->processInput(x, y);
break;
case GAME_PLAY:
// Is Player Dead? Click on TRY AGAIN
@@ -207,7 +207,7 @@ void Input::stylusMove(int x, int y) {
warning("STUB: stylusMove: Add GetDebug() check");
break;
case GAME_MENU:
- warning("STUB: stylusMove: Menu::processInput() required");
+ g_hdb->_menu->processInput(x, y);
break;
default:
break;