Skip to content

Commit

Permalink
TEENAGENT: Added robot's dialogue animation.
Browse files Browse the repository at this point in the history
  • Loading branch information
whoozle committed Nov 2, 2011
1 parent 23a9a27 commit d6a3247
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions engines/teenagent/callbacks.cpp
Expand Up @@ -3221,7 +3221,8 @@ bool TeenAgentEngine::processCallback(uint16 addr) {
return true;

case 0x6c83:
Dialog::pop(scene, 0xdb2e, 0, 0, 0xd1, 0xef, 0, 1);
waitLanAnimationFrame(1, 1);
Dialog::pop(scene, 0xdb2e, 0, 727, 0xd1, 0xef, 0, 1);
scene->getObject(1)->setName((const char *)res->dseg.ptr(0xaa94));
SET_FLAG(0xDBD1, 1);
return true;
Expand Down Expand Up @@ -3557,8 +3558,9 @@ bool TeenAgentEngine::processCallback(uint16 addr) {
playSound(5, 39);
displayAsyncMessage(0x5124, 40388, 9, 35, 0xd0);
playActorAnimation(728);
//fixme: add 727 animation
Dialog::show(scene, 0x3d17, 0, 0, 0xd1, 0xef, 0, 1);

waitLanAnimationFrame(1, 1);
Dialog::show(scene, 0x3d17, 0, 727, 0xd1, 0xef, 0, 1);
SET_FLAG(0xDBD2, 1);
processCallback(0x9175);
return true;
Expand All @@ -3572,13 +3574,14 @@ bool TeenAgentEngine::processCallback(uint16 addr) {
return true;
}
displayMessage(0x5138);
waitLanAnimationFrame(1, 1);

waitLanAnimationFrame(1, 1);
playSound(5, 3);
playSound(5, 23);
playActorAnimation(729);
//fixme: add 727 animation
Dialog::show(scene, 0x3d70, 0, 0, 0xd1, 0xef, 0, 1);

waitLanAnimationFrame(1, 1);
Dialog::show(scene, 0x3d70, 0, 727, 0xd1, 0xef, 0, 1);
SET_FLAG(0xDBD3, 1);
processCallback(0x9175);
return true;
Expand All @@ -3597,8 +3600,9 @@ bool TeenAgentEngine::processCallback(uint16 addr) {
playSound(5, 3);
playSound(5, 25);
playActorAnimation(730);
//fixme: add 727 animation
Dialog::show(scene, 0x3dd6, 0, 0, 0xd1, 0xef, 0, 1);

waitLanAnimationFrame(1, 1);
Dialog::show(scene, 0x3dd6, 0, 727, 0xd1, 0xef, 0, 1);
SET_FLAG(0xDBD4, 1);
processCallback(0x9175);
return true;
Expand Down

0 comments on commit d6a3247

Please sign in to comment.