Changeset 5074 in orxonox.OLD for trunk/src/util
- Timestamp:
- Aug 19, 2005, 1:52:25 AM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/shell.cc
r5073 r5074 35 35 this->buffer = new tList<char>; 36 36 37 //this->bufferSize = 0; 38 //this->bufferDisplaySize = 0; 37 39 this->setBufferSize(100); 38 40 this->setBufferDisplaySize(5); 39 } 40 41 42 43 this->addBufferLine("asjflksjdvklasmv", NULL); 44 TextEngine::getInstance()->debug(); 45 //exit(-1); 46 } 41 47 42 48 Shell* Shell::singletonRef = NULL; … … 52 58 } 53 59 60 /** 61 * sets The count of Lines to display in the buffer. 62 * @param bufferDisplaySize the count of lines to display in the Shell-Buffer. 63 */ 54 64 void Shell::setBufferDisplaySize(unsigned int bufferDisplaySize) 55 65 { … … 64 74 { 65 75 Text* newText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC, 0, 255, 0); 76 newText->setAlignment(TEXT_ALIGN_LEFT); 77 newText->setPosition2D(5, 5); 78 newText->setText(""); 66 79 this->bufferText->add(newText); 67 80 // add the Text here … … 115 128 strcpy(newLine, tmp); 116 129 117 this->buffer->add (newLine);130 this->buffer->addAtBeginning(newLine); 118 131 119 132 if (this->buffer->getSize() > this->bufferSize) … … 123 136 } 124 137 138 this->bufferText->firstElement()->setText(newLine); 125 139 126 140 } … … 230 244 * @param dt the elapsed time since the last tick(); 231 245 */ 232 void Shell::tick(float dt)233 {234 }246 //void Shell::tick(float dt) 247 //{ 248 //} 235 249 236 250 /** -
trunk/src/util/shell.h
r5072 r5074 59 59 60 60 // Element2D-functions 61 void tick(float dt);61 // void tick(float dt); 62 62 virtual void draw() const; 63 63
Note: See TracChangeset
for help on using the changeset viewer.