Changeset 8522 in orxonox.OLD
- Timestamp:
- Jun 16, 2006, 11:16:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/specials/glgui_notifier.cc
r8518 r8522 25 25 26 26 /** 27 * standard constructor27 * @brief standard constructor 28 28 */ 29 29 GLGuiNotifier::GLGuiNotifier () … … 57 57 } 58 58 59 /** 60 * @brief push a message onto the notifier. 61 * @param message the message to be pushed. 62 * 63 * @note it is not guaranteed, that the message is delivered instantaniously 64 * The possibility may arise, that the DisplayLines are all in use, then one 65 * has to wait until a line gets hidden, until a new one can be pushed to be 66 * displayed. 67 */ 59 68 void GLGuiNotifier::pushNotifyMessage(const std::string& message) 60 69 { 61 70 if (!this->hiddenText.empty()) 62 71 { 63 printf("%s\n", message.c_str()); 64 DisplayLine dl; 72 DisplayLine dl; // put everything in here, and then display it 73 74 // retrieve a Text. 65 75 dl.text = this->hiddenText.top(); 66 76 this->hiddenText.pop(); 77 78 // setup Text 67 79 dl.text->setBlending(1.0f); 68 80 dl.text->setText(message); 69 this->hiddenText.pop(); 81 dl.text->setVisibility(true); 82 dl.text->setRelCoor2D(this->calculateLinePosition(0)); 83 70 84 dl.age = 0.0f; 71 85 this->displayLines.push_front(dl); 72 73 dl.text->setVisibility(true);74 dl.text->setRelCoor2D(this->calculateLinePosition(0));75 86 this->repositionText(); 76 87 } 77 88 else 78 89 { 90 // push it onto the List of messages we still need. 79 91 this->inputBuffer.push_front(message); 80 //printf("grumble... must be fixed\n"); 81 } 82 } 83 84 92 } 93 } 94 95 96 /** 97 * @brief sets the Dipsplay Line Count of the Notifier. 98 * @param coun the count of displayLines. 99 */ 85 100 void GLGuiNotifier::setDisplayLineCount(unsigned int count) 86 101 { … … 129 144 130 145 146 /** 147 * @brief ticks the entire Notifier. 148 * @param dt the time passed since the last Tick 149 */ 131 150 void GLGuiNotifier::tick(float dt) 132 151 {
Note: See TracChangeset
for help on using the changeset viewer.