Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 1, 2006, 1:17:57 PM (18 years ago)
Author:
bensch
Message:

trunk: gui displayes nicely

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/elements/glgui_energywidget.cc

    r8976 r8977  
    2828    //   this->setClassID(CL_PROTO_ID, "GLGuiEnergyWidget");
    2929
     30    this->pack(&this->name);
    3031    this->pack(&this->text);
    3132    this->pack(&this->bar);
     
    4243
    4344
     45  void GLGuiEnergyWidget::setDisplayedName(const std::string& name)
     46  {
     47    this->name.setText(name);
     48  }
    4449
    4550  void GLGuiEnergyWidget::setMaximum(float max)
     
    6065  void GLGuiEnergyWidget::showing()
    6166  {
     67    this->name.show();
    6268    this->text.show();
    6369    this->bar.show();
     
    6672  void GLGuiEnergyWidget::hiding()
    6773  {
     74    this->name.hide();
    6875    this->text.hide();
    6976    this->bar.hide();
    7077  }
    71 
    72 
    73 
    7478}
Note: See TracChangeset for help on using the changeset viewer.