Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2008, 10:51:53 PM (17 years ago)
Author:
FelixSchulthess
Message:

progress bars now resize automatically and have a new look

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud3/src/orxonox/hud/HUD.cc

    r1328 r1329  
    6666    radar->show();
    6767
    68     container->addChild(energyCounter);
    69     container->addChild(speedo);
    70     container->addChild(radar);
    7168    container->show();
    7269    orxonoxHUD->add2D(container);
     
    7875    container->setMetricsMode(Ogre::GMM_RELATIVE);
    7976
    80     energyCounter->init(0.01, 0.01, 0.2, 0.02, container);
     77    energyCounter->init(0.01, 0.95, 0.4, 0.04, container);
    8178    energyCounter->setValue(1);
    8279
    83     speedo->init(0.01, 0.04, 0.2, 0.02, container);
     80    speedo->init(0.01, 0.90, 0.4, 0.04, container);
    8481
    8582    radar->init(0.5, 0.9, 0.2, container);
     
    8885  void HUD::tick(float dt)
    8986  {
     87      energyCounter->resize();
     88
    9089      float v = SpaceShip::instance_s->getVelocity().length();
    9190      float vmax = SpaceShip::instance_s->getMaxSpeed();
    9291      speedo->setValue(v/vmax);
     92      speedo->resize();
     93
     94      radar->resize();
    9395      radar->update();
    9496  }
Note: See TracChangeset for help on using the changeset viewer.