- Timestamp:
- Apr 22, 2008, 9:57:36 PM (17 years ago)
- Location:
- code/branches/console/src/orxonox/console
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/orxonox/console/InGameConsole.cc
r1137 r1139 36 36 const float REL_WIDTH = 0.8; 37 37 const float REL_HEIGHT = 0.4; 38 const float BLINK = 0.25; 38 39 39 40 InGameConsole::InGameConsole(InputBuffer* ib){ … … 168 169 } 169 170 170 cursor = (cursor+1)%20; 171 if(cursor%10==0) print(this->ib_->get()); 171 cursor += dt; 172 if(cursor >= 2*BLINK) cursor = 0; 173 print(this->ib_->get()); 172 174 173 175 // this creates a flickering effect … … 218 220 */ 219 221 void InGameConsole::print(std::string s){ 220 if(cursor> =10) consoleOverlayTextAreas[0]->setCaption(">" + s);222 if(cursor>BLINK) consoleOverlayTextAreas[0]->setCaption(">" + s); 221 223 else consoleOverlayTextAreas[0]->setCaption(">" + s + "_"); 222 224 } -
code/branches/console/src/orxonox/console/InGameConsole.h
r1137 r1139 74 74 int windowH; 75 75 int scroll; 76 int cursor;76 float cursor; 77 77 bool active; 78 78 InputBuffer* ib_;
Note: See TracChangeset
for help on using the changeset viewer.