Changeset 8991 in orxonox.OLD for trunk/src/lib/gui/gl
- Timestamp:
- Jul 1, 2006, 8:16:09 PM (18 years ago)
- Location:
- trunk/src/lib/gui/gl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl/glgui_bar.cc
r8984 r8991 46 46 this->setClassID(CL_GLGUI_BAR, "GLGuiBar"); 47 47 48 this->setFrontColor( Color(1,1,1));48 this->setFrontColor(_changedValueColor, true); 49 49 50 50 this->setSize2D(50, 10); … … 87 87 } 88 88 89 void GLGuiBar::setChangedValueColor(const Color& color) 90 { 91 this->_changedValueColor = color; 92 } 93 94 89 95 void GLGuiBar::resize() 90 96 { -
trunk/src/lib/gui/gl/glgui_bar.h
r8986 r8991 31 31 void setRange(float minimum, float maximum); 32 32 33 void setChangedValueColor(const Color& color); 34 33 35 float value() const { return this->_value; }; 34 36 float minimum() const { return this->_minimum; }; … … 51 53 float _minimum; 52 54 float _maximum; 55 56 Color _changedValueColor; 53 57 }; 54 58 } -
trunk/src/lib/gui/gl/glgui_text.cc
r8980 r8991 52 52 this->_text.setColor(foregroundColor()); 53 53 this->_text.setVisibility(false); 54 this->_changedTextColor = Color::white; 54 55 this->resize(); 55 56 } … … 111 112 { 112 113 this->resize(); 113 this->setFrontColor( Color(1,1,1,1), true);114 this->setFrontColor(_changedTextColor, true); 114 115 emit(this->textChanged(this->_text.text())); 115 116 } 116 117 117 118 void GLGuiText::setChangedTextColor(const Color& color) 119 { 120 this->_changedTextColor = color; 121 } 118 122 119 123 /** -
trunk/src/lib/gui/gl/glgui_text.h
r8980 r8991 31 31 void clear(); 32 32 33 void setChangedTextColor(const Color& color); 34 33 35 void setDotsPosition(LimitedWidthText::DotsPosition dotsPosition) { this->_text.setDotsPosition(dotsPosition); }; 34 36 … … 53 55 private: 54 56 LimitedWidthText _text; 57 58 Color _changedTextColor; 55 59 }; 56 60 }
Note: See TracChangeset
for help on using the changeset viewer.