Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7064 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Feb 6, 2006, 10:33:04 PM (19 years ago)
Author:
bensch
Message:

hud work

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/hud.cc

    r7062 r7064  
    130130    {
    131131      weapon->getEnergyWidget()->show();
     132      weapon->getEnergyWidget()->backMaterial().setDiffuse( .8,.2,.11);
     133      weapon->getEnergyWidget()->backMaterial().setTransparency(.1);
     134      weapon->getEnergyWidget()->frontMaterial().setDiffuse( .2,.5,.7);
     135      weapon->getEnergyWidget()->frontMaterial().setTransparency(.6);
    132136      this->weaponsWidgets.push_back(weapon->getEnergyWidget());
    133137    }
     
    151155  {
    152156    this->energyWidget->setAbsCoor2D(0 * this->resX, 0 * this->resY);
    153     this->energyWidget->setSize2D(.3 * this->resX, 1 * this->resY);
     157    this->energyWidget->setSize2D(.25 * this->resX, 1 * this->resY);
    154158  }
    155159
     
    157161
    158162  std::list<GLGuiWidget*>::iterator weaponWidget;
    159   float pos = .2;
     163  float pos = .3;
    160164  for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++, pos+=.03)
    161165  {
  • trunk/src/world_entities/world_entity.h

    r6959 r7064  
    9494  void increaseHealthMax(float increaseHealth);
    9595  GLGuiWidget* getHealthWidget();
     96  bool hasHealthWidget() const { return this->healthWidget; };
    9697
    9798protected:
Note: See TracChangeset for help on using the changeset viewer.