Changeset 8986 in orxonox.OLD for trunk/src/world_entities/elements/glgui_energywidget.cc
- Timestamp:
- Jul 1, 2006, 4:57:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/elements/glgui_energywidget.cc
r8985 r8986 40 40 this->_bar.setBackgroundColor(Color(0,0,0,0)); 41 41 this->_bar.setForegroundColor(Color(.5, .5, .5, 1)); 42 this->_bar.font().setBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA);43 42 } 44 43 … … 70 69 71 70 this->_bar.setValue(value); 72 this->_bar.setForegroundColor(Color (1 - (value / this->_bar.getMaximum()), value / this->_bar.getMaximum(),0,1));71 this->_bar.setForegroundColor(Color::slerpHSVColor(Color::red, Color::green, value/this->_bar.maximum())); 73 72 this->_bar.setFrontColor(Color(1,1,1,1), true); 74 73 this->_valueText.setText(val.getString());
Note: See TracChangeset
for help on using the changeset viewer.