Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 22, 2008, 12:06:55 AM (16 years ago)
Author:
rgrieder
Message:
  • added blankString to String so you can return ""; even if it's a const std::string&
  • fixed several bugs with aspect correct and margin alignment
  • added console commands for OrxonoxOverlays and OverlayGroups for rotate, scale and scroll (you can access the by name (from name=.. in xml file), e.g. "OrxonoxOverlay rotateOverlay SpeedBar 90)
  • converted everything in overlays/ to 4 spaces/tab ;)
  • removed all using namespace Ogre;
  • added background_ Panel to OrxonoxOverlay, since most of the derived classes can use that
  • should work now, but I'll have to test on a tardis box first
File:
1 edited

Legend:

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

    r1614 r1615  
    4343    unsigned int HUDBar::materialcount_s = 0;
    4444
    45     using namespace Ogre;
    46 
    4745    HUDBar::HUDBar()
    4846        : bar_(0)
     
    5452    HUDBar::~HUDBar()
    5553    {
    56         if (this->isInitialized())
    57         {
    58             if (this->bar_)
    59                 OverlayManager::getSingleton().destroyOverlayElement(this->bar_);
    60             // FIXME: Check whether we have to delete the textureUnitState_;
    61         }
     54        if (this->bar_)
     55            Ogre::OverlayManager::getSingleton().destroyOverlayElement(this->bar_);
    6256    }
    6357
     
    8276            barOffsetLeft_s = 0.06f;
    8377            barOffsetTop_s = 0.0f;
    84             this->bar_ = static_cast<PanelOverlayElement*>(OverlayManager::getSingleton().createOverlayElement("Panel", getName() + "Bar" + getUniqueNumberStr()));
     78
     79            this->bar_ = static_cast<Ogre::PanelOverlayElement*>(Ogre::OverlayManager::getSingleton()
     80                .createOverlayElement("Panel", "HUDBar_bar_" + getUniqueNumberStr()));
    8581            this->bar_->setMaterialName(materialname);
    8682            this->background_->addChild(bar_);
Note: See TracChangeset for help on using the changeset viewer.