Changeset 3300 for code/trunk/src/orxonox/overlays/hud
- Timestamp:
- Jul 17, 2009, 11:53:35 PM (15 years ago)
- Location:
- code/trunk/src/orxonox/overlays/hud
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/hud/GametypeStatus.cc
r3280 r3300 70 70 { 71 71 if (gtinfo->isStartCountdownRunning()) 72 this->setCaption(multi_cast<std::string>( (int)ceil(gtinfo->getStartCountdown())));72 this->setCaption(multi_cast<std::string>(static_cast<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
r3280 r3300 73 73 // create new material 74 74 std::string materialname = "barmaterial" + multi_cast<std::string>(materialcount_s++); 75 Ogre::MaterialPtr material = (Ogre::MaterialPtr)Ogre::MaterialManager::getSingleton().create(materialname, "General");75 Ogre::MaterialPtr material = static_cast<Ogre::MaterialPtr>(Ogre::MaterialManager::getSingleton().create(materialname, "General")); 76 76 material->getTechnique(0)->getPass(0)->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA); 77 77 this->textureUnitState_ = material->getTechnique(0)->getPass(0)->createTextureUnitState(); -
code/trunk/src/orxonox/overlays/hud/HUDHealthBar.cc
r3280 r3300 83 83 { 84 84 this->setValue(this->owner_->getHealth() / this->owner_->getInitialHealth()); 85 this->textoverlay_->setCaption(multi_cast<std::string>( (int)this->owner_->getHealth()));85 this->textoverlay_->setCaption(multi_cast<std::string>(static_cast<int>(this->owner_->getHealth()))); 86 86 } 87 87 -
code/trunk/src/orxonox/overlays/hud/HUDTimer.cc
r3280 r3300 59 59 if (gametype->getTimerIsActive()) 60 60 { 61 this->setCaption(multi_cast<std::string>( (int)gametype->getTime() + 1));61 this->setCaption(multi_cast<std::string>(static_cast<int>(gametype->getTime()) + 1)); 62 62 } 63 63 }
Note: See TracChangeset
for help on using the changeset viewer.