Changeset 1627 for code/trunk/src/orxonox/overlays/hud/HUDBar.h
- Timestamp:
- Jun 26, 2008, 7:00:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/hud/HUDBar.h
r1626 r1627 60 60 }; 61 61 62 62 63 class _OrxonoxExport HUDBar : public OrxonoxOverlay 63 64 { … … 68 69 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); 69 70 70 virtual void setValue(float value);71 71 void clearColours(); 72 72 73 inline void setRightToLeft(bool r2l) 74 { this->right2Left_ = r2l; this->setValue(this->value_); } 75 inline bool getRightToLeft() const 76 { return this->right2Left_; } 77 inline float getValue() const 78 { return this->value_; } 73 void setRightToLeft(bool r2l) { this->right2Left_ = r2l; this->valueChanged(); } 74 bool getRightToLeft() const { return this->right2Left_; } 75 76 void setValue(float value) { this->value_ = clamp(value, 0.0f, 1.0f); this->valueChanged(); } 77 float getValue() const { return this->value_; } 78 79 void setAutoColour(bool val) { this->autoColour_ = val; this->valueChanged(); } 80 bool getAutoColour() const { return this->autoColour_; } 81 82 protected: 83 virtual void valueChanged(); 79 84 80 85 private: … … 91 96 std::vector<BarColour*> barColours_; 92 97 93 float barWidth_s;94 float barHeight_s;95 float barOffsetLeft_s;96 float barOffsetTop_s;97 98 98 static unsigned int materialcount_s; 99 99 };
Note: See TracChangeset
for help on using the changeset viewer.