Changeset 5381 in orxonox.OLD for branches/2d-recalc/src/lib/shell/shell.cc
- Timestamp:
- Oct 15, 2005, 7:13:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2d-recalc/src/lib/shell/shell.cc
r5380 r5381 57 57 ->defaultValues(1, SHELL_DEFAULT_FONT); 58 58 59 59 60 /** 60 61 * standard constructor … … 81 82 this->backgroundMaterial = new Material; 82 83 // Element2D and generals 83 this->textSize = .001;84 this->lineSpacing = .001;84 this->textSize = 16; 85 this->lineSpacing = 1; 85 86 this->bActive = false; 86 87 this->fontFile = new char[strlen(SHELL_DEFAULT_FONT)+1]; … … 96 97 ShellBuffer::getInstance()->registerShell(this); 97 98 } 99 98 100 99 101 /** … … 115 117 } 116 118 119 117 120 /** 118 121 * activates the shell … … 139 142 } 140 143 144 141 145 /** 142 146 * deactiveates the Shell. … … 162 166 this->bufferOffset = 0; 163 167 } 168 164 169 165 170 /** … … 183 188 this->rebuildText(); 184 189 } 190 185 191 186 192 /** … … 199 205 } 200 206 207 201 208 /** 202 209 * sets the color of the Font. … … 229 236 this->backgroundMaterial->setTransparency(a); 230 237 } 238 231 239 232 240 /** … … 271 279 } 272 280 281 273 282 /** 274 283 * rebuilds the Text's … … 285 294 this->setBufferDisplaySize(this->bufferDisplaySize); 286 295 } 296 287 297 288 298 /** … … 319 329 } 320 330 331 321 332 /** 322 333 * deletes all the Buffers … … 334 345 // BUFFER FLUSHING 335 346 } 347 336 348 337 349 /** … … 374 386 } 375 387 388 376 389 /** 377 390 * moves the Display buffer (up or down) … … 424 437 } 425 438 439 426 440 /** 427 441 * clears the Shell (empties all buffers) … … 432 446 ShellBuffer::addBufferLineStatic("orxonox - shell\n ==================== \n", NULL); 433 447 } 448 434 449 435 450 /** … … 459 474 } 460 475 476 461 477 /** 462 478 * displays the Shell … … 487 503 } 488 504 505 489 506 /////////////////////// 490 507 // HELPER FUNCTIONS // 491 508 /////////////////////// 492 493 509 /** 494 510 * calculates the position of a Buffer-Display Line … … 500 516 return Vector(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber -1) + this->textSize, 0); 501 517 } 502 503 518 504 519
Note: See TracChangeset
for help on using the changeset viewer.