Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8975 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jul 1, 2006, 12:12:48 PM (19 years ago)
Author:
bensch
Message:

trunk: widget displayed

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world_data.cc

    r8717 r8975  
    107107  LightManager::getInstance();
    108108
    109   GraphicsEngine::getInstance()->displayFPS(true);
     109//  GraphicsEngine::getInstance()->displayFPS(true);
    110110
    111111  return ErrorMessage();
  • trunk/src/util/hud.cc

    r8619 r8975  
    163163  if (this->energyWidget != NULL)
    164164  {
    165     this->energyWidget->setAbsCoor2D(0 * this->resX, 0 * this->resY);
    166     this->energyWidget->setSize2D(.25 * this->resX, 1 * this->resY);
     165    this->energyWidget->setAbsCoor2D(0.0 * this->resX, 0.9 * this->resY);
     166    this->energyWidget->setWidgetSize(.25 * this->resX, 0.1 * this->resY);
    167167  }
    168168
     
    173173  for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++, pos+=.03)
    174174  {
    175     (*weaponWidget)->setSize2D(.02*this->resX, .2 *this->resY);
     175    (*weaponWidget)->setWidgetSize(.02*this->resX, .2 *this->resY);
    176176    (*weaponWidget)->setAbsCoor2D(pos*this->resX, .75*this->resY);
    177177
  • trunk/src/world_entities/elements/glgui_energywidget.cc

    r8974 r8975  
    4242
    4343
     44
    4445  void GLGuiEnergyWidget::setMaximum(float max)
    4546  {
     
    5657
    5758
     59  void GLGuiEnergyWidget::showing()
     60  {
     61    this->text.show();
     62    this->bar.show();
     63  }
     64
     65  void GLGuiEnergyWidget::hiding()
     66  {
     67    this->text.hide();
     68    this->bar.hide();
     69  }
     70
     71
    5872
    5973}
  • trunk/src/world_entities/elements/glgui_energywidget.h

    r8974 r8975  
    2727  protected:
    2828    //virtual void resize();
     29    virtual void showing();
     30    virtual void hiding();
    2931
    3032  private:
Note: See TracChangeset for help on using the changeset viewer.