FULLPIPE: Implement sceneHandler32_buttonPush()

This commit is contained in:
Eugene Sandulenko 2014-01-07 16:43:33 +02:00
parent a7ae2b4452
commit 7292a08b8a
2 changed files with 11 additions and 1 deletions

View File

@ -1086,7 +1086,9 @@ namespace Fullpipe {
#define QU_KBK32_START 4982
#define QU_SC32_ENTERLIFT 2827
#define QU_SC32_EXITLIFT 2828
#define QU_SC32_FALLHANDLE 5351
#define QU_SC32_SHOWHANDLE 2399
#define ST_BTN32_OFF 5349
#define ST_BTN32_ON 5350
#define ST_FLG_LEFT 2260
#define ST_FLG_NORM 2259

View File

@ -144,7 +144,15 @@ void sceneHandler32_trySit(ExCommand *cmd) {
}
void sceneHandler32_buttonPush() {
warning("STUB: sceneHandler32_buttonPush()");
if (g_fp->getObjectState(sO_ClockHandle) == g_fp->getObjectEnumState(sO_ClockHandle, sO_In_32_Sticks)) {
StaticANIObject *ani = g_fp->_currentScene->getStaticANIObject1ById(ANI_INV_HANDLE, -1);
if (ani)
ani->changeStatics2(ST_HDL_PLUGGED);
chainQueue(QU_SC32_FALLHANDLE, 1);
g_vars->scene32_button->changeStatics2(ST_BTN32_OFF);
}
}
void sceneHandler32_installHandle() {