Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 825


Ignore:
Timestamp:
Feb 17, 2008, 6:26:23 PM (17 years ago)
Author:
nicolasc
Message:

created error output, up to chai to fix it

Location:
code/branches/hud/src/orxonox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud/src/orxonox/CMakeLists.txt

    r790 r825  
    55  SpaceshipSteering.cc
    66  hud/HUD.cc
     7  hud/Bar.cc
    78  particle/ParticleInterface.cc
    89  tools/BillboardSet.cc
  • code/branches/hud/src/orxonox/Orxonox.cc

    r823 r825  
    398398    Ogre::Overlay* hudOverlay = overlayManager.create("orxonoxsuperoverlay");
    399399
    400     hud::Bar* newBar = static_cast<hud::Bar*>(overlayManager.createOverlayElement("Panel", "Bar"));
     400    Bar* newBar = static_cast<Bar*>(overlayManager.createOverlayElement("Panel", "Bar"));
    401401    newBar->setLeft(0);
    402402    newBar->setTop(0);
     
    405405    newBar->setMaterialName("Orxonox/Red");
    406406    newBar->setMetricsMode(Ogre::GMM_PIXELS);
    407     newBar->setPercentage(0.8);
     407    newBar->setPercentage((Ogre::Real)0.8);
    408408    newBar->show();
    409409
  • code/branches/hud/src/orxonox/hud/Bar.cc

    r824 r825  
    3434#include "Bar.h"
    3535
    36 namespace hud
     36namespace orxonox
    3737{
    3838  using namespace Ogre;
  • code/branches/hud/src/orxonox/hud/Bar.h

    r823 r825  
    3939
    4040
    41 namespace hud
     41// namespace hud
     42namespace orxonox
    4243{
    4344  class Bar : public Ogre::OverlayElement
    4445  {
    4546  private:
    46     float percentage_;
     47    double percentage_;
    4748    bool horz_;
    4849    Ogre::ColourValue color_;
Note: See TracChangeset for help on using the changeset viewer.