- Timestamp:
- Oct 27, 2008, 4:08:51 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/overlays/hud/HUDBar.cc
r1854 r2019 38 38 39 39 #include "util/Convert.h" 40 #include "util/String.h" 40 41 #include "core/CoreIncludes.h" 41 42 #include "core/XMLPort.h" … … 45 46 CreateFactory(BarColour); 46 47 47 BarColour::BarColour() 48 : position_(0.0) 48 BarColour::BarColour(BaseObject* creator) : BaseObject(creator), position_(0.0) 49 49 { 50 50 RegisterObject(BarColour); … … 63 63 unsigned int HUDBar::materialcount_s = 0; 64 64 65 HUDBar::HUDBar() 66 : bar_(0) 67 , textureUnitState_(0) 65 HUDBar::HUDBar(BaseObject* creator) : OrxonoxOverlay(creator), bar_(0), textureUnitState_(0) 68 66 { 69 67 RegisterObject(HUDBar); … … 92 90 93 91 this->bar_ = static_cast<Ogre::PanelOverlayElement*>(Ogre::OverlayManager::getSingleton() 94 .createOverlayElement("Panel", "HUDBar_bar_" + getUniqueNumberStr ()));92 .createOverlayElement("Panel", "HUDBar_bar_" + getUniqueNumberString())); 95 93 this->bar_->setMaterialName(materialname); 96 94 this->background_->addChild(bar_);
Note: See TracChangeset
for help on using the changeset viewer.