Changeset 7316 in orxonox.OLD for trunk/src/lib/shell/shell.cc
- Timestamp:
- Apr 17, 2006, 1:49:05 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r7315 r7316 128 128 EventHandler::getInstance()->withUNICODE(true); 129 129 130 this->setRelCoorSoft2D(0, 0, 1,5);130 this->setRelCoorSoft2D(0, 0, 5); 131 131 132 132 list<std::string>::const_iterator textLine = --ShellBuffer::getInstance()->getBuffer().end(); … … 157 157 EventHandler::getInstance()->popState(); 158 158 159 this->setRelCoorSoft2D(0, -(int)this->shellHeight, 1,5);159 this->setRelCoorSoft2D(0, -(int)this->shellHeight, 5); 160 160 161 161 list<std::string>::const_iterator textLine = --ShellBuffer::getInstance()->getBuffer().end(); … … 370 370 lastText->setRelDir2D(-90); 371 371 lastText->setRelDirSoft2D(0, 20); 372 lastText->setRelCoor2D(this->calculateLinePosition(0)- Vector (-1000,0,0));372 lastText->setRelCoor2D(this->calculateLinePosition(0)- Vector2D(-1000,0)); 373 373 lastText->setRelCoorSoft2D(this->calculateLinePosition(0),10); 374 374 … … 493 493 494 494 /** 495 * calculates the position of a Buffer-Display Line495 * @brief calculates the position of a Buffer-Display Line 496 496 * @param lineNumber the lineNumber from the bottom to calculate the position from 497 497 * @returns the Position of the Line. 498 498 */ 499 Vector Shell::calculateLinePosition(unsigned int lineNumber)500 { 501 return Vector (5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber - 2) + this->textSize, 0);502 } 503 504 505 506 /** 507 * displays some nice output from the Shell499 Vector2D Shell::calculateLinePosition(unsigned int lineNumber) 500 { 501 return Vector2D(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber - 2) + this->textSize); 502 } 503 504 505 506 /** 507 * @brief displays some nice output from the Shell 508 508 */ 509 509 void Shell::debug() const
Note: See TracChangeset
for help on using the changeset viewer.