Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 27, 2008, 4:08:51 AM (16 years ago)
Author:
landauf
Message:

many changes, most important: BaseObject takes now a pointer to it's creator which is needed to build a level hierarchy (with different scenes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/overlays/hud/HUDBar.cc

    r1854 r2019  
    3838
    3939#include "util/Convert.h"
     40#include "util/String.h"
    4041#include "core/CoreIncludes.h"
    4142#include "core/XMLPort.h"
     
    4546    CreateFactory(BarColour);
    4647
    47     BarColour::BarColour()
    48         : position_(0.0)
     48    BarColour::BarColour(BaseObject* creator) : BaseObject(creator), position_(0.0)
    4949    {
    5050        RegisterObject(BarColour);
     
    6363    unsigned int HUDBar::materialcount_s = 0;
    6464
    65     HUDBar::HUDBar()
    66         : bar_(0)
    67         , textureUnitState_(0)
     65    HUDBar::HUDBar(BaseObject* creator) : OrxonoxOverlay(creator), bar_(0), textureUnitState_(0)
    6866    {
    6967        RegisterObject(HUDBar);
     
    9290
    9391            this->bar_ = static_cast<Ogre::PanelOverlayElement*>(Ogre::OverlayManager::getSingleton()
    94                 .createOverlayElement("Panel", "HUDBar_bar_" + getUniqueNumberStr()));
     92                .createOverlayElement("Panel", "HUDBar_bar_" + getUniqueNumberString()));
    9593            this->bar_->setMaterialName(materialname);
    9694            this->background_->addChild(bar_);
Note: See TracChangeset for help on using the changeset viewer.