Changeset 3280 for code/trunk/src/orxonox/overlays/hud
- Timestamp:
- Jul 12, 2009, 11:58:01 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 (added) merged: 3235-3237,3245-3250,3253-3254,3260-3261,3265,3270
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/overlays/hud/GametypeStatus.cc
r3196 r3280 70 70 { 71 71 if (gtinfo->isStartCountdownRunning()) 72 this->setCaption( convertToString((int)ceil(gtinfo->getStartCountdown())));72 this->setCaption(multi_cast<std::string>((int)ceil(gtinfo->getStartCountdown()))); 73 73 else if (ce->isA(Class(Spectator))) 74 74 this->setCaption("Press [Fire] to respawn"); -
code/trunk/src/orxonox/overlays/hud/HUDBar.cc
r3196 r3280 38 38 39 39 #include "util/Convert.h" 40 #include "util/String .h"40 #include "util/StringUtils.h" 41 41 #include "core/CoreIncludes.h" 42 42 #include "core/XMLPort.h" … … 72 72 73 73 // create new material 74 std::string materialname = "barmaterial" + getConvertedValue<unsigned int,std::string>(materialcount_s++);74 std::string materialname = "barmaterial" + multi_cast<std::string>(materialcount_s++); 75 75 Ogre::MaterialPtr material = (Ogre::MaterialPtr)Ogre::MaterialManager::getSingleton().create(materialname, "General"); 76 76 material->getTechnique(0)->getPass(0)->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA); -
code/trunk/src/orxonox/overlays/hud/HUDHealthBar.cc
r3196 r3280 83 83 { 84 84 this->setValue(this->owner_->getHealth() / this->owner_->getInitialHealth()); 85 this->textoverlay_->setCaption( convertToString((int)this->owner_->getHealth()));85 this->textoverlay_->setCaption(multi_cast<std::string>((int)this->owner_->getHealth())); 86 86 } 87 87 -
code/trunk/src/orxonox/overlays/hud/HUDNavigation.cc
r3196 r3280 35 35 36 36 #include "util/Math.h" 37 #include "util/String .h"37 #include "util/StringUtils.h" 38 38 #include "util/Convert.h" 39 39 #include "core/CoreIncludes.h" … … 142 142 // set text 143 143 int dist = (int) getDist2Focus(); 144 navText_->setCaption( convertToString(dist));145 float textLength = convertToString(dist).size() * navText_->getCharHeight() * 0.3;144 navText_->setCaption(multi_cast<std::string>(dist)); 145 float textLength = multi_cast<std::string>(dist).size() * navText_->getCharHeight() * 0.3; 146 146 147 147 /* -
code/trunk/src/orxonox/overlays/hud/HUDRadar.cc
r3196 r3280 34 34 35 35 #include "util/Math.h" 36 #include "util/String .h"36 #include "util/StringUtils.h" 37 37 #include "core/CoreIncludes.h" 38 38 #include "core/XMLPort.h" -
code/trunk/src/orxonox/overlays/hud/HUDTimer.cc
r3196 r3280 59 59 if (gametype->getTimerIsActive()) 60 60 { 61 this->setCaption( convertToString((int)gametype->getTime() + 1));61 this->setCaption(multi_cast<std::string>((int)gametype->getTime() + 1)); 62 62 } 63 63 } -
code/trunk/src/orxonox/overlays/hud/PongScore.cc
r3196 r3280 83 83 { 84 84 name1 = player1->getName(); 85 score1 = convertToString(this->owner_->getScore(player1));85 score1 = multi_cast<std::string>(this->owner_->getScore(player1)); 86 86 } 87 87 … … 89 89 { 90 90 name2 = player2->getName(); 91 score2 = convertToString(this->owner_->getScore(player2));91 score2 = multi_cast<std::string>(this->owner_->getScore(player2)); 92 92 } 93 93 -
code/trunk/src/orxonox/overlays/hud/TeamBaseMatchScore.cc
r3196 r3280 71 71 if (this->owner_) 72 72 { 73 std::string bases1 = "(" + convertToString(this->owner_->getTeamBases(0)) + ")";74 std::string bases2 = "(" + convertToString(this->owner_->getTeamBases(1)) + ")";73 std::string bases1 = "(" + multi_cast<std::string>(this->owner_->getTeamBases(0)) + ")"; 74 std::string bases2 = "(" + multi_cast<std::string>(this->owner_->getTeamBases(1)) + ")"; 75 75 76 std::string score1 = convertToString(this->owner_->getTeamPoints(0));77 std::string score2 = convertToString(this->owner_->getTeamPoints(1));76 std::string score1 = multi_cast<std::string>(this->owner_->getTeamPoints(0)); 77 std::string score2 = multi_cast<std::string>(this->owner_->getTeamPoints(1)); 78 78 79 79 std::string output1;
Note: See TracChangeset
for help on using the changeset viewer.