Changeset 8983 in orxonox.OLD for trunk/src/world_entities/elements
- Timestamp:
- Jul 1, 2006, 4:12:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/elements/glgui_energywidget.cc
r8981 r8983 26 26 { 27 27 // this->setClassID(CL_PROTO_ID, "GLGuiEnergyWidget"); 28 29 this->_bar.setSize2D(100, 30); 28 30 this->pack(&this->_name); 29 31 this->pack(&this->_valueText); … … 36 38 this->_valueText.setBackgroundTexture("maps/gui_element_background_2.png"); 37 39 this->_bar.setBackgroundTexture(Texture()); 40 this->_bar.setBackgroundColor(Color(0,0,0,0)); 41 this->_bar.setForegroundColor(Color(1, 1, 1, 1)); 42 this->_bar.font().setBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA); 38 43 } 39 44 … … 50 55 { 51 56 this->_name.setText(name); 57 this->_bar.setWidgetSize(this->_name.getSize2D()); 52 58 } 53 59
Note: See TracChangeset
for help on using the changeset viewer.