Changeset 5420 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Oct 22, 2005, 1:57:29 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r5398 r5420 84 84 this->textSize = 20; 85 85 this->lineSpacing = 0; 86 this->bActive = false;86 this->bActive = true; 87 87 this->fontFile = new char[strlen(SHELL_DEFAULT_FONT)+1]; 88 88 strcpy(this->fontFile, SHELL_DEFAULT_FONT); … … 94 94 this->setBackgroundColor(SHELL_DEFAULT_BACKGROUND_COLOR); 95 95 96 this->deactivate(); 96 97 // register the shell at the ShellBuffer 97 98 ShellBuffer::getInstance()->registerShell(this); … … 135 136 { 136 137 this->bufferText[i]->setText(bufferIT->getCurrent(), true); 138 this->bufferText[i]->setVisibility(true); 137 139 bufferIT->prevStep(); 138 140 } … … 159 161 this->bufferText[i]->setText(bufferIT->getCurrent(), false); 160 162 bufferIT->prevStep(); 163 this->bufferText[i]->setVisibility(false); 161 164 } 162 165 delete bufferIT; … … 254 257 this->shellInput->setColor(this->textColor[0], this->textColor[1], this->textColor[2]); 255 258 this->shellInput->setBlending(this->textColor[3]); 256 this->shellInput->setRelCoor2D(5, (this->textSize + this->lineSpacing)* this->bufferDisplaySize + this->textSize);259 this->shellInput->setRelCoor2D(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize)); 257 260 } 258 261 … … 271 274 } 272 275 this->shellHeight = (this->textSize + this->lineSpacing) * (bufferDisplaySize+1); 273 274 276 } 275 277 … … 501 503 Vector Shell::calculateLinePosition(unsigned int lineNumber) 502 504 { 503 return Vector(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber - 1) + this->textSize, 0);505 return Vector(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber - 2) + this->textSize, 0); 504 506 } 505 507
Note: See TracChangeset
for help on using the changeset viewer.