Skip to content

Commit

Permalink
FULLPIPE: Implement sceneHandler04_clickButton()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Nov 25, 2013
1 parent bb2b1c8 commit e9b1742
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions engines/fullpipe/constants.h
Expand Up @@ -26,6 +26,7 @@
namespace Fullpipe {

#define ANI_BOOT_1 4231
#define ANI_BUTTON 598
#define ANI_CLOCK 588
#define ANI_DOMINO_3 2732
#define ANI_DADAYASHIK 306
Expand Down Expand Up @@ -109,6 +110,9 @@ namespace Fullpipe {
#define MV_KZW_JUMP 558
#define MV_KZW_JUMPROTATE 561
#define MV_BDG_OPEN 1379
#define MV_BTN_CLICK 599
#define MV_CLK_GO 589
#define MV_HND_POINT 602
#define MV_MAN_GOD 481
#define MV_MAN_GOLADDER 451
#define MV_MAN_GOLADDER2 2844
Expand Down
13 changes: 12 additions & 1 deletion engines/fullpipe/scenes/scene04.cpp
Expand Up @@ -222,7 +222,18 @@ void sceneHandler04_clickBottle() {
}

void sceneHandler04_clickButton() {
warning("sceneHandler04_clickButton()");
StaticANIObject *but = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_BUTTON, -1);

if (but) {
if (!g_vars->scene04_clock->_movement ||
(g_vars->scene04_clock->_movement->_id == MV_CLK_GO && g_vars->scene04_clock->_movement->_currDynamicPhaseIndex > 3 &&
g_vars->scene04_clock->_movement->_currDynamicPhaseIndex < 105)) {
if (!g_vars->scene04_hand->_movement && !g_vars->scene04_var02) {
but->startAnim(MV_BTN_CLICK, 0, -1);
g_vars->scene04_hand->startAnim(MV_HND_POINT, 0, -1);
}
}
}
}

void sceneHandler04_clickLadder() {
Expand Down

0 comments on commit e9b1742

Please sign in to comment.