Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2008, 3:38:39 PM (16 years ago)
Author:
rgrieder
Message:
  • converted tabs to spaces in HUD
  • adjusted msvc project
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/hud/BarOverlayElement.h

    r1406 r1410  
    2727
    2828
    29 #ifndef _BAR_H__
    30 #define _BAR_H__
     29#ifndef _BarOverlayElement_H__
     30#define _BarOverlayElement_H__
    3131
     32#include "OrxonoxPrereqs.h"
    3233
     34#include <OgrePrerequisites.h>
    3335#include <OgrePanelOverlayElement.h>
    34 #include <OgrePrerequisites.h>
    35 #include "../OrxonoxPrereqs.h"
    3636
    3737namespace orxonox
     
    4040  {
    4141    private:
    42         bool autoColor_;                    // whether bar changes color automatically
    43         float value_;                       // progress of bar
    44         int color_;
    45         int left_;
    46         int top_;
    47         int width_;
    48         int height_;
    49         int windowW_, windowH_;
    50         Ogre::Real leftRel_;
    51         Ogre::Real topRel_;
    52         Ogre::Real dimRel_;
    53         Ogre::OverlayManager* om;           // our overlay manager
    54         Ogre::OverlayContainer* container_; // our parent container to attach to
    55         Ogre::OverlayContainer* background_;
    56         Ogre::String name_;
     42      bool autoColor_;                    // whether bar changes color automatically
     43      float value_;                       // progress of bar
     44      int color_;
     45      int left_;
     46      int top_;
     47      int width_;
     48      int height_;
     49      int windowW_, windowH_;
     50      Ogre::Real leftRel_;
     51      Ogre::Real topRel_;
     52      Ogre::Real dimRel_;
     53      Ogre::OverlayManager* om;           // our overlay manager
     54      Ogre::OverlayContainer* container_; // our parent container to attach to
     55      Ogre::OverlayContainer* background_;
     56      Ogre::String name_;
    5757
    5858    public:
    59         bool left2Right;
    60         static const int RED = 0;           // predefined colors
    61         static const int YELLOW = 1;
    62         static const int GREEN = 2;
     59      bool left2Right;
     60      static const int RED = 0;           // predefined colors
     61      static const int YELLOW = 1;
     62      static const int GREEN = 2;
    6363
    64         BarOverlayElement(const Ogre::String& name);
    65         virtual ~BarOverlayElement();
    66         void init(Real leftRel, Real topRel, Real dimRel, Ogre::OverlayContainer* container);
    67         void resize();
    68         void setValue(float value);
    69         void setColor(int color);
    70         float getValue();
    71         int getBarColor();
     64      BarOverlayElement(const Ogre::String& name);
     65      virtual ~BarOverlayElement();
     66      void init(Real leftRel, Real topRel, Real dimRel, Ogre::OverlayContainer* container);
     67      void resize();
     68      void setValue(float value);
     69      void setColor(int color);
     70      float getValue();
     71      int getBarColor();
    7272    };
    7373}
    74 #endif
    7574
    76 
     75#endif /* _BarOverlayElement_H__ */
Note: See TracChangeset for help on using the changeset viewer.