- Timestamp:
- Feb 1, 2015, 3:56:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/surfaceraceHS14/src/modules/dodgerace/DodgeRaceHUDinfo.cc
r10232 r10236 56 56 57 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 58 if(this->bShowPoints_) 59 { 60 const std::string& points = multi_cast<std::string>(this->DodgeRaceGame->getPoints()); 61 if (this->DodgeRaceGame->lives <= 0) 62 { 63 setTextSize(0.2); 64 setPosition(Vector2(0.1, 0.02)); 65 this->setCaption("Final score:\n" + points); 66 this->setColour(ColourValue(1, 0, 0, 1)); 67 } 68 else 69 { 70 setTextSize(0.04); 71 setPosition(Vector2(0.14, 0.02)); 72 this->setColour(ColourValue(1, 1, 1, 1)); 73 this->setCaption(points); 74 } 75 } 76 76 } 77 77
Note: See TracChangeset
for help on using the changeset viewer.