Changeset 8977 in orxonox.OLD for trunk/src/world_entities/elements/glgui_energywidget.cc
- Timestamp:
- Jul 1, 2006, 1:17:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/elements/glgui_energywidget.cc
r8976 r8977 28 28 // this->setClassID(CL_PROTO_ID, "GLGuiEnergyWidget"); 29 29 30 this->pack(&this->name); 30 31 this->pack(&this->text); 31 32 this->pack(&this->bar); … … 42 43 43 44 45 void GLGuiEnergyWidget::setDisplayedName(const std::string& name) 46 { 47 this->name.setText(name); 48 } 44 49 45 50 void GLGuiEnergyWidget::setMaximum(float max) … … 60 65 void GLGuiEnergyWidget::showing() 61 66 { 67 this->name.show(); 62 68 this->text.show(); 63 69 this->bar.show(); … … 66 72 void GLGuiEnergyWidget::hiding() 67 73 { 74 this->name.hide(); 68 75 this->text.hide(); 69 76 this->bar.hide(); 70 77 } 71 72 73 74 78 }
Note: See TracChangeset
for help on using the changeset viewer.