FULLPIPE: Implement sceneHandler07_openLuke()

This commit is contained in:
Eugene Sandulenko 2013-12-19 18:42:35 +02:00
parent 97cd39bb95
commit 8862be264b
2 changed files with 15 additions and 1 deletions

View File

@ -403,6 +403,7 @@ namespace Fullpipe {
#define ST_LBN_9N 2777
#define ST_LBN_9P 2778
#define ST_LUK_CLOSED 805
#define ST_LUK_OPEN 806
#define ST_MAN_GOLADDER 450
#define ST_MAN_GOLADDER2 2843
#define ST_MAN_EMPTY 476

View File

@ -55,7 +55,20 @@ void scene07_initScene(Scene *sc) {
}
void sceneHandler07_openLuke() {
warning("STUB: sceneHandler07_openLuke()");
StaticANIObject *luke = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_LUKE, -1);
luke->changeStatics2(ST_LUK_OPEN);
luke->show1(-1, -1, -1, 0);
if (g_vars->scene07_lukeAnim) {
g_vars->scene07_lukeAnim->_percent = g_vars->scene07_lukePercent;
} else {
StaticANIObject *ani = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_CORNERSITTER, -1);
g_vars->scene07_lukeAnim = g_fullpipe->_behaviorManager->getBehaviorEntryInfoByMessageQueueDataId(ani, ST_CST_HANDLELESS, QU_CST_CLOSELUKE);
g_vars->scene07_lukeAnim->_percent = g_vars->scene07_lukePercent;
}
}
void sceneHandler07_closeLuke() {