Changeset 980 for code/branches/hud/src/orxonox/hud/Bar.h
- Timestamp:
- Apr 3, 2008, 2:52:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/hud/Bar.h
r825 r980 30 30 #define _BAR_H__ 31 31 32 #include <string> 33 #include <OgreColourValue.h> 32 #include <string.h> 34 33 #include <OgreOverlayElement.h> 34 #include <OgreTextAreaOverlayElement.h> 35 35 #include <OgrePrerequisites.h> 36 #include <string.h>37 36 #include "../OrxonoxPrereqs.h" 38 37 39 38 40 39 41 // namespace hud42 40 namespace orxonox 43 41 { 44 class Bar : public Ogre::OverlayElement42 class _OrxonoxExport Bar 45 43 { 46 44 private: 47 double percentage_; 48 bool horz_; 49 Ogre::ColourValue color_; 45 int percentage_; 46 int dir_; 47 int left_; 48 int top_; 49 int width_; 50 int height_; 51 52 public: 53 static const int LEFT = 0; 54 static const int UP = 1; 55 static const int RIGHT = 2; 56 static const int DOWN = 3; 57 58 static const int RED = 0; 59 static const int YELLOW = 1; 60 static const int GREEN = 2; 61 62 Ogre::OverlayElement* element; 63 64 Bar(Ogre::Real left, Ogre::Real top, Ogre::Real width, Ogre::Real height, 65 int dir, int colour, std::string name); 66 ~Bar(void); 67 void reset(int percentage); 68 void setColour(int colour); 69 void show(); 70 void hide(); 71 72 }; 50 73 51 74 75 class _OrxonoxExport SmartBar : public Bar 76 { 77 private: 78 52 79 public: 53 Bar(void);54 ~Bar(void);55 void setPercentage(Ogre::Real percentage);56 void setColor(Ogre::ColourValue color);80 SmartBar(Ogre::Real left, Ogre::Real top, Ogre::Real width, Ogre::Real height, 81 int dir, std::string name); 82 ~SmartBar(void); 83 void reset(int percentage); 57 84 }; 58 85 }
Note: See TracChangeset
for help on using the changeset viewer.