Changeset 991 for code/branches/hud2/src/orxonox/Orxonox.cc
- Timestamp:
- Apr 4, 2008, 12:10:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud2/src/orxonox/Orxonox.cc
r973 r991 255 255 bulletMgr_ = new BulletManager(); 256 256 257 Ogre::Overlay* hudOverlay = Ogre::OverlayManager::getSingleton().getByName("Orxonox/HUD1.2");258 HUD* orxonoxHud;259 orxonoxH ud = new HUD();260 orxonoxHud->setEnergyValue(20);261 orxonoxHud->setEnergyDistr(20,20,60);262 hudOverlay->show();257 //Ogre::Overlay* hudOverlay = Ogre::OverlayManager::getSingleton().getByName("Orxonox/HUD1.2"); 258 //HUD* orxonoxHud; 259 orxonoxHUD_ = new HUD(1); 260 //orxonoxHud->setEnergyValue(20); 261 //orxonoxHud->setEnergyDistr(20,20,60); 262 //hudOverlay->show(); 263 263 264 264 client_g->establishConnection(); … … 306 306 Loader::open(startlevel); 307 307 308 Ogre::Overlay* hudOverlay = Ogre::OverlayManager::getSingleton().getByName("Orxonox/HUD1.2");309 orxonoxHUD_ = new HUD( );310 orxonoxHUD_->setEnergyValue(20);311 orxonoxHUD_->setEnergyDistr(20,20,60);312 hudOverlay->show();308 //Ogre::Overlay* hudOverlay = Ogre::OverlayManager::getSingleton().getByName("Orxonox/HUD1.2"); 309 orxonoxHUD_ = new HUD(1); 310 //orxonoxHUD_->setEnergyValue(20); 311 //orxonoxHUD_->setEnergyDistr(20,20,60); 312 //hudOverlay->show(); 313 313 314 314 /* … … 374 374 375 375 // show the current time in the HUD 376 orxonoxHUD_->setTime((int)now, 0); 376 //orxonoxHUD_->setTime((int)now, 0); 377 orxonoxHUD_->energyCounter->reset(20); 378 377 379 378 380 // Iterate through all Tickables and call their tick(dt) function
Note: See TracChangeset
for help on using the changeset viewer.