[Scummvm-cvs-logs] SF.net SVN: scummvm:[42988] scummvm/branches/gsoc2009-draci/engines/draci
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Sun Aug 2 05:02:22 CEST 2009
Revision: 42988
http://scummvm.svn.sourceforge.net/scummvm/?rev=42988&view=rev
Author: dkasak13
Date: 2009-08-02 03:02:22 +0000 (Sun, 02 Aug 2009)
Log Message:
-----------
Added a dedicated animation for speech text.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/animation.h
scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/animation.h
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/animation.h 2009-08-02 01:00:56 UTC (rev 42987)
+++ scummvm/branches/gsoc2009-draci/engines/draci/animation.h 2009-08-02 03:02:22 UTC (rev 42988)
@@ -34,7 +34,11 @@
* 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
Modified: scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/game.cpp 2009-08-02 01:00:56 UTC (rev 42987)
+++ scummvm/branches/gsoc2009-draci/engines/draci/game.cpp 2009-08-02 03:02:22 UTC (rev 42988)
@@ -204,9 +204,14 @@
// 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list