Changeset 8619 in orxonox.OLD for trunk/src/util
- Timestamp:
- Jun 20, 2006, 1:24:11 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.cc
r8518 r8619 89 89 { 90 90 this->energyWidget->show(); 91 this->energyWidget->backMaterial().setDiffuseMap("hud_energy_background.png"); 92 this->energyWidget->backMaterial().setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 91 this->energyWidget->setBackgroundTexture( "hud_energy_background.png"); 93 92 /* this->energyWidget->frontMaterial().setDiffuseMap("hud_energy_bar.png"); 94 93 this->energyWidget->frontMaterial().setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);*/ … … 143 142 { 144 143 weapon->getEnergyWidget()->show(); 145 weapon->getEnergyWidget()->backMaterial().setDiffuse( .8,.2,.11); 146 weapon->getEnergyWidget()->backMaterial().setTransparency(.1); 144 weapon->getEnergyWidget()->setBackgroundColor(Color(.8,.2,.11, 0.1)); 147 145 weapon->getEnergyWidget()->setFrontColor(Color( .2,.5,.7,.6)); 148 146 // weapon->getEnergyWidget()->frontMaterial().setTransparency(.6);
Note: See TracChangeset
for help on using the changeset viewer.