Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 16, 2006, 3:09:42 PM (18 years ago)
Author:
bensch
Message:

more configurable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/gui/gl/specials/glgui_notifier.cc

    r8522 r8530  
    3434    this->lineSpacing = 0;
    3535    this->linesProcessed = 0;
     36    this->_fadeAge = 3.0;
     37    this->setHideAge(4.0);
    3638
    3739    this->setDisplayLineCount(10);
     
    111113  }
    112114
     115  void GLGuiNotifier::setFadeAge(float fadeAge)
     116  {
     117    this->_fadeAge = fadeAge;
     118    this->_transformAge = hideAge() - this->fadeAge();
     119  }
     120
     121  void GLGuiNotifier::setHideAge(float hideAge)
     122  {
     123    this->_hideAge = hideAge;
     124    this->_transformAge = this->hideAge() - fadeAge();
     125  }
     126
    113127
    114128  /**
     
    154168    {
    155169      (*line).age+=dt;
    156       if ((*line).age > 3.0f)
     170      if ((*line).age > this->fadeAge())
    157171      {
    158         (*line).text->setBlending(4.0 - (*line).age);
    159         if ((*line).age > 4.0f)
     172        (*line).text->setBlending((hideAge() - (*line).age)/_transformAge);
     173        if ((*line).age > hideAge())
    160174        {
    161175          std::list<DisplayLine>::iterator tmp = line;
Note: See TracChangeset for help on using the changeset viewer.