Changeset 8530 in orxonox.OLD for branches/gui/src/lib/gui/gl/specials/glgui_notifier.cc
- Timestamp:
- Jun 16, 2006, 3:09:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/specials/glgui_notifier.cc
r8522 r8530 34 34 this->lineSpacing = 0; 35 35 this->linesProcessed = 0; 36 this->_fadeAge = 3.0; 37 this->setHideAge(4.0); 36 38 37 39 this->setDisplayLineCount(10); … … 111 113 } 112 114 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 113 127 114 128 /** … … 154 168 { 155 169 (*line).age+=dt; 156 if ((*line).age > 3.0f)170 if ((*line).age > this->fadeAge()) 157 171 { 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()) 160 174 { 161 175 std::list<DisplayLine>::iterator tmp = line;
Note: See TracChangeset
for help on using the changeset viewer.