- Timestamp:
- Feb 6, 2006, 10:33:04 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.cc
r7062 r7064 130 130 { 131 131 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); 132 136 this->weaponsWidgets.push_back(weapon->getEnergyWidget()); 133 137 } … … 151 155 { 152 156 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); 154 158 } 155 159 … … 157 161 158 162 std::list<GLGuiWidget*>::iterator weaponWidget; 159 float pos = . 2;163 float pos = .3; 160 164 for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++, pos+=.03) 161 165 { -
trunk/src/world_entities/world_entity.h
r6959 r7064 94 94 void increaseHealthMax(float increaseHealth); 95 95 GLGuiWidget* getHealthWidget(); 96 bool hasHealthWidget() const { return this->healthWidget; }; 96 97 97 98 protected:
Note: See TracChangeset
for help on using the changeset viewer.