Changeset 1604 for code/branches/hud/src/orxonox/overlays/hud/HUDBar.cc
- Timestamp:
- Jun 15, 2008, 1:09:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/overlays/hud/HUDBar.cc
r1601 r1604 81 81 OverlayManager::getSingleton().createOverlayElement("Panel", getName() + "_Background")); 82 82 this->background_->setMaterialName("Orxonox/BarBackground"); 83 this->background_->setMetricsMode(GMM_RELATIVE);84 this->background_->setDimensions(1.0f, 1.0f);85 this->background_->setPosition(0.0f, 0.0f);86 83 this->overlay_->add2D(this->background_); 87 84 … … 98 95 this->bar_ = static_cast<PanelOverlayElement*>(OverlayManager::getSingleton().createOverlayElement("Panel", getName() + "Bar")); 99 96 this->bar_->setMaterialName(materialname); 100 this->bar_->setMetricsMode(GMM_RELATIVE);101 97 this->background_->addChild(bar_); 102 98 }
Note: See TracChangeset
for help on using the changeset viewer.