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