Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 16, 2008, 5:57:05 PM (17 years ago)
Author:
FelixSchulthess
Message:

repositioned hud layout

File:
1 edited

Legend:

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

    r1302 r1310  
    6565
    6666    energyCounter = static_cast<SmartBarOverlayElement*>(overlayManager.createOverlayElement("SmartBar", "energyCounter"));
    67     energyCounter->show();
     67    //energyCounter->show();
    6868
    6969
     
    133133*/
    134134
    135     energyCounterPanel->setLeft(-50);
    136     energyCounterPanel->setTop(10);
    137     energyCounterPanel->setWidth(100);
    138     energyCounterPanel->setHeight(20);
    139     energyCounterPanel->setHorizontalAlignment(Ogre::GHA_CENTER);
    140     energyCounterPanel->setMetricsMode(Ogre::GMM_PIXELS);
     135    energyCounterPanel->setLeft(0.0);
     136    energyCounterPanel->setTop(0.0);
     137    energyCounterPanel->setWidth(1.0);
     138    energyCounterPanel->setHeight(1.0);
     139    energyCounterPanel->setMetricsMode(Ogre::GMM_RELATIVE);
    141140
    142     energyCounter->initSmartBarOverlayElement(-100,0,200,20,BarOverlayElement::LEFT);
     141    energyCounter->initSmartBarOverlayElement(10,10,200,20,BarOverlayElement::LEFT);
    143142    energyCounter->reset(80);
    144143
    145     radar->initRadarOverlayElement(10,10,200,energyCounterPanel);
     144    radar->initRadarOverlayElement(0.5, 0.8, 0.2, energyCounterPanel);
    146145
    147146
Note: See TracChangeset for help on using the changeset viewer.