Changeset 1310 for code/branches/hud3/src/orxonox/hud/HUD.cc
- Timestamp:
- May 16, 2008, 5:57:05 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud3/src/orxonox/hud/HUD.cc
r1302 r1310 65 65 66 66 energyCounter = static_cast<SmartBarOverlayElement*>(overlayManager.createOverlayElement("SmartBar", "energyCounter")); 67 energyCounter->show();67 //energyCounter->show(); 68 68 69 69 … … 133 133 */ 134 134 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); 141 140 142 energyCounter->initSmartBarOverlayElement( -100,0,200,20,BarOverlayElement::LEFT);141 energyCounter->initSmartBarOverlayElement(10,10,200,20,BarOverlayElement::LEFT); 143 142 energyCounter->reset(80); 144 143 145 radar->initRadarOverlayElement( 10,10,200,energyCounterPanel);144 radar->initRadarOverlayElement(0.5, 0.8, 0.2, energyCounterPanel); 146 145 147 146
Note: See TracChangeset
for help on using the changeset viewer.