Changeset 8984 in orxonox.OLD for trunk/src/world_entities/elements
- Timestamp:
- Jul 1, 2006, 4:23:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/elements/glgui_energywidget.cc
r8983 r8984 39 39 this->_bar.setBackgroundTexture(Texture()); 40 40 this->_bar.setBackgroundColor(Color(0,0,0,0)); 41 this->_bar.setForegroundColor(Color( 1, 1, 1, 1));41 this->_bar.setForegroundColor(Color(.5, .5, .5, 1)); 42 42 this->_bar.font().setBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA); 43 43 } … … 68 68 val.setType(MT_INT); 69 69 70 70 71 this->_bar.setValue(value); 72 this->_bar.setForegroundColor(Color(1 - (value / this->_bar.getMaximum()), value / this->_bar.getMaximum(),0,1)); 71 73 this->_valueText.setText(val.getString()); 72 74 }
Note: See TracChangeset
for help on using the changeset viewer.