Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 4, 2008, 12:10:58 PM (17 years ago)
Author:
rgrieder
Message:
  • added the hud files and edited the CMLs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud2/src/orxonox/Orxonox.cc

    r973 r991  
    255255    bulletMgr_ = new BulletManager();
    256256   
    257     Ogre::Overlay* hudOverlay = Ogre::OverlayManager::getSingleton().getByName("Orxonox/HUD1.2");
    258     HUD* orxonoxHud;
    259     orxonoxHud = 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();
    263263   
    264264    client_g->establishConnection();
     
    306306    Loader::open(startlevel);
    307307
    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();
    313313
    314314        /*
     
    374374
    375375      // 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
    377379
    378380      // Iterate through all Tickables and call their tick(dt) function
Note: See TracChangeset for help on using the changeset viewer.