Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1412


Ignore:
Timestamp:
May 24, 2008, 5:44:20 PM (16 years ago)
Author:
rgrieder
Message:
File:
1 edited

Legend:

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

    r1411 r1412  
    2626*/
    2727
    28 #ifndef _BAR_H__
    29 #define _BAR_H__
     28#ifndef _BarOverlayElement_H__
     29#define _BarOverlayElement_H__
    3030
     31#include "OrxonoxPrereqs.h"
     32
     33#include <OgrePrerequisites.h>
    3134#include <OgrePanelOverlayElement.h>
    32 #include <OgrePrerequisites.h>
    33 #include "../OrxonoxPrereqs.h"
    3435
    3536namespace orxonox
     
    3839  {
    3940    private:
    40         bool autoColor_;                    // whether bar changes color automatically
    41         float value_;                       // progress of bar
    42         int color_;
    43         int left_;
    44         int top_;
    45         int width_;
    46         int height_;
    47         int windowW_, windowH_;
    48         Ogre::Real leftRel_;
    49         Ogre::Real topRel_;
    50         Ogre::Real dimRel_;
    51         Ogre::OverlayManager* om;           // our overlay manager
    52         Ogre::OverlayContainer* container_; // our parent container to attach to
    53         Ogre::OverlayContainer* background_;
    54         Ogre::String name_;
     41      bool autoColor_;                    // whether bar changes color automatically
     42      float value_;                       // progress of bar
     43      int color_;
     44      int left_;
     45      int top_;
     46      int width_;
     47      int height_;
     48      int windowW_, windowH_;
     49      Ogre::Real leftRel_;
     50      Ogre::Real topRel_;
     51      Ogre::Real dimRel_;
     52      Ogre::OverlayManager* om;           // our overlay manager
     53      Ogre::OverlayContainer* container_; // our parent container to attach to
     54      Ogre::OverlayContainer* background_;
     55      Ogre::String name_;
    5556
    5657    public:
    57         bool left2Right;
    58         static const int RED = 0;           // predefined colors
    59         static const int YELLOW = 1;
    60         static const int GREEN = 2;
     58      bool left2Right;
     59      static const int RED = 0;           // predefined colors
     60      static const int YELLOW = 1;
     61      static const int GREEN = 2;
    6162
    62         BarOverlayElement(const Ogre::String& name);
    63         virtual ~BarOverlayElement();
    64         void init(Real leftRel, Real topRel, Real dimRel, Ogre::OverlayContainer* container);
    65         void resize();
    66         void setValue(float value);
    67         void setColor(int color);
    68         float getValue();
    69         int getBarColor();
     63      BarOverlayElement(const Ogre::String& name);
     64      virtual ~BarOverlayElement();
     65      void init(Real leftRel, Real topRel, Real dimRel, Ogre::OverlayContainer* container);
     66      void resize();
     67      void setValue(float value);
     68      void setColor(int color);
     69      float getValue();
     70      int getBarColor();
    7071    };
    7172}
    72 #endif
    73 
    74 
     73#endif /* _BarOverlayElement_H__ */
Note: See TracChangeset for help on using the changeset viewer.