From 014c33718f0569ca6a205595751531adc97dd6d5 Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Sun, 2 Aug 2009 03:02:22 +0000 Subject: Added a dedicated animation for speech text. svn-id: r42988 --- engines/draci/animation.h | 6 +++++- engines/draci/game.cpp | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/engines/draci/animation.h b/engines/draci/animation.h index a6ab07a9a4..cc339084e3 100644 --- a/engines/draci/animation.h +++ b/engines/draci/animation.h @@ -34,7 +34,11 @@ namespace Draci { * Animation IDs for those animations that don't have their IDs * specified in the data files. */ -enum { kOverlayImage = -1, kWalkingMapOverlay = -2, kTitleText = -3, kUnused = -4 }; +enum { kOverlayImage = -1, + kWalkingMapOverlay = -2, + kTitleText = -3, + kSpeechText = -4, + kUnused = -5 }; /** * Default argument to Animation::getFrame() that makes it return diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp index 4f83f135c6..a0e0acbe85 100644 --- a/engines/draci/game.cpp +++ b/engines/draci/game.cpp @@ -204,9 +204,14 @@ void Game::init() { // Initialize animation for object / room titles Animation *titleAnim = _vm->_anims->addText(kTitleText, true); - Text *title = new Text ("", _vm->_bigFont, kFontColour3, 0, 0); + Text *title = new Text("", _vm->_bigFont, kFontColour3, 0, 0); titleAnim->addFrame(title); + // Initialize animation for speech text + Animation *speechAnim = _vm->_anims->addText(kSpeechText, true); + Text *speech = new Text("", _vm->_bigFont, kFontColour1, 0, 0); + speechAnim->addFrame(speech); + loadObject(kDragonObject); GameObject *dragon = getObject(kDragonObject); -- cgit v1.2.3