Changeset 8984 in orxonox.OLD for trunk/src/lib/gui/gl
- Timestamp:
- Jul 1, 2006, 4:23:49 PM (18 years ago)
- Location:
- trunk/src/lib/gui/gl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl/glgui_bar.cc
r8983 r8984 70 70 71 71 this->_value = value; 72 73 this->_frontRect.setRight(this->getSizeX2D() * (_value -_minimum)/ (_minimum + _maximum));72 this->_frontRect.setSize((this->getSizeX2D() - borderLeft() - borderRight()) * (_value -_minimum)/ (_minimum + _maximum) 73 ,this->getSizeY2D() - borderTop() - borderBottom()); 74 74 } 75 75 void GLGuiBar::setMinimum(float minimum) … … 97 97 } 98 98 99 void GLGuiBar::updateFrontColor()100 {101 this->font().setDiffuseColor(Color());102 }103 104 105 99 106 100 /** … … 112 106 GLGuiWidget::draw(); 113 107 114 this->font().select(); 115 glDisable(GL_BLEND); 108 this->foreground().select(); 116 109 this->drawRect(this->_frontRect); 117 110 -
trunk/src/lib/gui/gl/glgui_bar.h
r8983 r8984 40 40 protected: 41 41 virtual void resize(); 42 virtual void updateFrontColor();43 42 44 43 private:
Note: See TracChangeset
for help on using the changeset viewer.