Added a dedicated animation for speech text.
svn-id: r42988
This commit is contained in:
parent
e0e06fc9e0
commit
014c33718f
2 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue