Changeset 10760 in orxonox.OLD for branches/presentation/src/world_entities/world_entity.cc
- Timestamp:
- Jun 21, 2007, 2:29:46 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/world_entity.cc
r10758 r10760 272 272 { 273 273 PRINTF(4)("fetching OBJ file: %s\n", fileName.c_str()); 274 // creating the model and loading it 274 // creating the model and loading it OrxGui::GLGuiEnergyWidgetVertical* implantWidget; 275 275 StaticModel* model = new StaticModel(); 276 276 *model = ResourceOBJ(fileName, this->scaling); … … 831 831 float retShield = this->shieldMax - this->shield; 832 832 this->shield = this->shieldMax; 833 //this->updateShieldWidget();833 this->updateShieldWidget(); 834 834 return retShield; 835 835 } 836 //this->updateShieldWidget();836 this->updateShieldWidget(); 837 837 return 0.0; 838 838 } … … 849 849 { 850 850 float retShield = -this->shield; 851 //this->updateShieldWidget();851 this->updateShieldWidget(); 852 852 this->bShieldActive = false; 853 853 return retShield; 854 854 } 855 //this->updateShieldWidget();855 this->updateShieldWidget(); 856 856 return 0.0; 857 857 } … … 944 944 OrxGui::GLGuiWidget* WorldEntity::getImplantWidget() 945 945 { 946 this->createImplantWidget(); 946 if(this->implantWidget == NULL) 947 this->createImplantWidget(); 947 948 return this->implantWidget; 948 949 } … … 1083 1084 this->shieldWidget = new OrxGui::GLGuiEnergyWidgetVertical(); 1084 1085 this->shieldWidget->getBarWidget()->setChangedValueColor(Color(1,0,0,1)); 1085 //this->shieldWidget->setDisplayedName("Shield:");1086 //his->shieldWidget->setSize2D(100,20);1087 //this->shieldWidget->setAbsCoor2D(200,200);1086 // this->shieldWidget->setDisplayedName("Shield:"); 1087 // his->shieldWidget->setSize2D(100,20); 1088 // this->shieldWidget->setAbsCoor2D(200,200); 1088 1089 this->updateShieldWidget(); 1089 1090 // if (dynamic_cast<SpaceShip*>(this)->hasPlayer())
Note: See TracChangeset
for help on using the changeset viewer.