Changeset 1968 for code/branches/objecthierarchy/src/orxonox/overlays/hud
- Timestamp:
- Oct 20, 2008, 1:47:41 AM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/orxonox/overlays/hud
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/overlays/hud/ChatOverlay.cc
r1953 r1968 90 90 COUT(0) << "Chat: " << text << std::endl; 91 91 92 Timer<ChatOverlay>* timer = new Timer<ChatOverlay>; 93 ExecutorMember<ChatOverlay>* executor = createExecutor(createFunctor(&ChatOverlay::dropMessage)); 94 executor->setDefaultValues(timer); 95 timer->setTimer(this->displayTime_, false, this, executor); 92 new Timer<ChatOverlay>(this->displayTime_, false, this, createExecutor(createFunctor(&ChatOverlay::dropMessage)), true); 96 93 97 94 this->updateOverlayText(); 98 95 } 99 96 100 void ChatOverlay::dropMessage( Timer<ChatOverlay>* timer)97 void ChatOverlay::dropMessage() 101 98 { 102 99 this->messages_.pop_front(); 103 100 this->updateOverlayText(); 104 105 delete timer;106 101 } 107 102 -
code/branches/objecthierarchy/src/orxonox/overlays/hud/ChatOverlay.h
r1953 r1968 54 54 private: 55 55 void updateOverlayText(); 56 void dropMessage( Timer<ChatOverlay>* timer);56 void dropMessage(); 57 57 58 58 float displayTime_;
Note: See TracChangeset
for help on using the changeset viewer.