Changeset 2284 for code/branches/questsystem3/src
- Timestamp:
- Nov 26, 2008, 6:11:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem3/src/orxonox/overlays/notifications/NotificationManager.cc
r2281 r2284 53 53 bool update = false; 54 54 55 for (std::list<NotificationContainer*>::iterator notification = NotificationManager::notifications_s.begin(); notification != NotificationManager::notifications_s.end(); ++notification)55 for (std::list<NotificationContainer*>::iterator notification = notifications_s.begin(); notification != notifications_s.end(); ++notification) 56 56 { 57 57 NotificationContainer* container = *notification; … … 83 83 container->notification = notification; 84 84 container->remainingTime = notification->getDisplayTime(); 85 NotificationManager::notifications_s.push_front(container);85 notifications_s.push_front(container); 86 86 87 87 updateQueue(); 88 88 89 COUT(3) << "Notification inserted, title: " << notification->getTitle() << std::endl;89 COUT(3) << "Notification inserted, title: " << notification->getTitle() << ", message: " << notification->getMessage() << std::endl; 90 90 91 91 return true; … … 97 97 98 98 int i = NotificationQueue::queue_s->getLength(); 99 for (std::list<NotificationContainer*>::iterator notification = NotificationManager::notifications_s.begin(); notification != NotificationManager::notifications_s.end() || i <= 0; ++notification)100 99 for (std::list<NotificationContainer*>::iterator notification = notifications_s.begin(); notification != notifications_s.end() || i <= 0; ++notification) 100 { 101 101 i--; 102 102 NotificationContainer* container = *notification; … … 105 105 106 106 text = text + "\n\n------------" + container->notification->getTitle(); + "\n" + container->notification->getMessage(); 107 108 109 COUT(3) << "Queue updated: "<< std::endl;107 } 108 109 COUT(3) << "Queue updated: " << text << std::endl; 110 110 111 111 NotificationQueue::queue_s->setQueueText(text);
Note: See TracChangeset
for help on using the changeset viewer.