Changeset 5121 in orxonox.OLD for trunk/src/util
- Timestamp:
- Aug 25, 2005, 1:26:57 AM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/resource_manager.cc
r5115 r5121 319 319 else 320 320 tmpResource->ttfSize = FONT_DEFAULT_SIZE; 321 if (param2)322 {323 Vector* tmpVec = (Vector*)param2;324 tmpResource->ttfColorR = (int)tmpVec->x;325 tmpResource->ttfColorG = (int)tmpVec->y;326 tmpResource->ttfColorB = (int)tmpVec->z;327 }328 else329 {330 tmpResource->ttfColorR = FONT_DEFAULT_COLOR_R;331 tmpResource->ttfColorG = FONT_DEFAULT_COLOR_G;332 tmpResource->ttfColorB = FONT_DEFAULT_COLOR_B;333 }334 321 335 322 if(isFile(fullName)) 336 323 tmpResource->pointer = new Font(fullName, 337 tmpResource->ttfSize, 338 tmpResource->ttfColorR, 339 tmpResource->ttfColorG, 340 tmpResource->ttfColorB); 324 tmpResource->ttfSize); 341 325 else 342 326 PRINTF(2)("Sorry, %s does not exist. Not loading Font\n", fullName); … … 560 544 else if (enumRes->ttfSize == *(int*)param1) 561 545 subMatch = true; 562 if(subMatch)563 {564 Vector* tmpVec = (Vector*)param2;565 if (!param2)566 {567 if(enumRes->ttfColorR == FONT_DEFAULT_COLOR_R &&568 enumRes->ttfColorG == FONT_DEFAULT_COLOR_G &&569 enumRes->ttfColorB == FONT_DEFAULT_COLOR_B )570 match = true;571 }572 else if (enumRes->ttfColorR == (int)tmpVec->x &&573 enumRes->ttfColorG == (int)tmpVec->y &&574 enumRes->ttfColorB == (int)tmpVec->z )575 match = true;576 }577 546 break; 578 547 #endif /* NO_TEXT */ -
trunk/src/util/resource_manager.h
r5039 r5121 79 79 #ifndef NO_TEXT 80 80 unsigned int ttfSize; //!< the size of the ttf-font (TTF) 81 unsigned char ttfColorR; //!< red Color (TTF)82 unsigned char ttfColorG; //!< green Color (TTF)83 unsigned char ttfColorB; //!< blue Color (TTF)84 81 #endif /* NO_TEXT */ 85 82 }; -
trunk/src/util/shell.cc
r5120 r5121 158 158 if (this->inputLineText == NULL) 159 159 delete this->inputLineText; 160 this->inputLineText = TextEngine::getInstance()->createText("fonts/Aniron_Bold.ttf", this->textSize, TEXT_DYNAMIC, 255, 0, 0); 160 this->inputLineText = TextEngine::getInstance()->createText("fonts/Aniron_Bold.ttf", this->textSize, TEXT_DYNAMIC); 161 this->inputLineText->setColor(1, 0, 0); 161 162 this->inputLineText->setAlignment(TEXT_ALIGN_LEFT); 162 163 this->inputLineText->setText(NULL); … … 183 184 for (unsigned int i = 0; i < bufferDisplaySize; i++) 184 185 { 185 this->bufferText[i] = TextEngine::getInstance()->createText("fonts/Aniron_Bold.ttf", this->textSize, TEXT_DYNAMIC, 255, 0, 0); 186 this->bufferText[i] = TextEngine::getInstance()->createText("fonts/Aniron_Bold.ttf", this->textSize, TEXT_DYNAMIC); 187 this->bufferText[i]->setColor(1, 0, 0); 186 188 this->bufferText[i]->setAlignment(TEXT_ALIGN_LEFT); 187 189 this->bufferText[i]->setRelCoor2D(calculateLinePosition(i)); -
trunk/src/util/track/track_manager.cc
r5115 r5121 380 380 this->setBindSlave(this->trackNode); 381 381 // initializing the Text 382 this->trackText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC , 0, 255, 0);382 this->trackText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC); 383 383 this->trackText->setAlignment(E2D_ALIGN_SCREEN_CENTER); 384 384 // initializing the Animation for the Text.
Note: See TracChangeset
for help on using the changeset viewer.