diff options
author | Denis Kasak | 2009-08-02 03:02:22 +0000 |
---|---|---|
committer | Denis Kasak | 2009-08-02 03:02:22 +0000 |
commit | 014c33718f0569ca6a205595751531adc97dd6d5 (patch) | |
tree | 5791df81691c7d7f692b9841953005560d46b9b8 /engines/draci | |
parent | e0e06fc9e065466e4092e983056d67d1469e6752 (diff) | |
download | scummvm-rg350-014c33718f0569ca6a205595751531adc97dd6d5.tar.gz scummvm-rg350-014c33718f0569ca6a205595751531adc97dd6d5.tar.bz2 scummvm-rg350-014c33718f0569ca6a205595751531adc97dd6d5.zip |
Added a dedicated animation for speech text.
svn-id: r42988
Diffstat (limited to 'engines/draci')
-rw-r--r-- | engines/draci/animation.h | 6 | ||||
-rw-r--r-- | 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); |