Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3846 in orxonox.OLD for orxonox/trunk/src/track_manager.cc


Ignore:
Timestamp:
Apr 17, 2005, 1:32:39 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: now the Text is real sexy, smashing in and smoothly fading out

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/track_manager.cc

    r3845 r3846  
    394394  // initializing the Animation for the Text.
    395395  this->textAnimation = new tAnim<Text>(this->trackText, &Text::setBlending);
    396   this->textAnimation->addKeyFrame(1.0, 1.0, ANIM_LINEAR);
    397   this->textAnimation->addKeyFrame(0.0, 1.0);
     396  this->textAnimation->addKeyFrame(1.0, 3.0, ANIM_LINEAR);
     397  this->textAnimation->addKeyFrame(0.0, .001);
    398398  this->textAnimation->setInfinity(ANIM_INF_CONSTANT);
    399399}
     
    941941        {
    942942          this->trackText->setText(this->currentTrackElem->getName());
    943           this->textAnimation->play();
     943          this->textAnimation->replay();
    944944        }
    945945    }
Note: See TracChangeset for help on using the changeset viewer.