- Timestamp:
- May 24, 2008, 3:38:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/hud/BarOverlayElement.h
r1406 r1410 27 27 28 28 29 #ifndef _B AR_H__30 #define _B AR_H__29 #ifndef _BarOverlayElement_H__ 30 #define _BarOverlayElement_H__ 31 31 32 #include "OrxonoxPrereqs.h" 32 33 34 #include <OgrePrerequisites.h> 33 35 #include <OgrePanelOverlayElement.h> 34 #include <OgrePrerequisites.h>35 #include "../OrxonoxPrereqs.h"36 36 37 37 namespace orxonox … … 40 40 { 41 41 private: 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 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_; 57 57 58 58 public: 59 60 61 62 59 bool left2Right; 60 static const int RED = 0; // predefined colors 61 static const int YELLOW = 1; 62 static const int GREEN = 2; 63 63 64 65 66 67 68 69 70 71 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(); 72 72 }; 73 73 } 74 #endif75 74 76 75 #endif /* _BarOverlayElement_H__ */
Note: See TracChangeset
for help on using the changeset viewer.