Changeset 2500 for code/branches/presentation/src/orxonox/overlays
- Timestamp:
- Dec 17, 2008, 8:00:43 AM (16 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation
- Property svn:mergeinfo changed
/code/branches/pickups2 (added) merged: 2110,2136,2202,2227,2289-2290,2293-2294,2324,2342,2389,2397
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/overlays/notifications/NotificationQueue.cc
r2436 r2500 38 38 { 39 39 NotificationQueue* NotificationQueue::queue_s = 0; 40 40 41 41 CreateFactory(NotificationQueue); 42 42 … … 53 53 queue_s = this; 54 54 } 55 55 56 56 this->length_ = 3; 57 57 this->width_ = 50; 58 COUT(0) << "added notification queue" << std::endl; 58 59 } 59 60 60 61 NotificationQueue::~NotificationQueue() 61 62 { 62 63 COUT(0) << "deleted notification queue" << std::endl; 64 63 65 } 64 66 65 67 void NotificationQueue::XMLPort(Element& xmlElement, XMLPort::Mode mode) 66 68 { 67 69 SUPER(NotificationQueue, XMLPort, xmlElement, mode); 68 70 69 71 XMLPortParam(NotificationQueue, "length", setLength, getLength, xmlElement, mode); 70 72 XMLPortParam(NotificationQueue, "width", setWidth, getWidth, xmlElement, mode); 71 73 } 72 74 73 75 void NotificationQueue::tick(float dt) 74 76 { 75 77 NotificationManager::tick(dt); 76 78 77 79 update(); 78 80 } 79 81 80 82 bool NotificationQueue::setLength(int length) 81 83 { … … 87 89 return false; 88 90 } 89 91 90 92 bool NotificationQueue::setWidth(int width) 91 93 { … … 97 99 return false; 98 100 } 99 101 100 102 void NotificationQueue::setQueueText(const std::string & text) 101 103 { 104 COUT(0) << "queue: " << text << std::endl; 102 105 this->queueText_ = text; 103 106 } 104 107 105 108 void NotificationQueue::update(void) 106 109 {
Note: See TracChangeset
for help on using the changeset viewer.