Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 21, 2007, 2:29:46 AM (17 years ago)
Author:
nicolasc
Message:

Widget Improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/world_entity.cc

    r10758 r10760  
    272272    {
    273273      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;
    275275      StaticModel* model = new StaticModel();
    276276      *model = ResourceOBJ(fileName, this->scaling);
     
    831831    float retShield = this->shieldMax - this->shield;
    832832    this->shield = this->shieldMax;
    833 //     this->updateShieldWidget();
     833    this->updateShieldWidget();
    834834    return retShield;
    835835  }
    836 //   this->updateShieldWidget();
     836  this->updateShieldWidget();
    837837  return 0.0;
    838838}
     
    849849  {
    850850    float retShield = -this->shield;
    851 //     this->updateShieldWidget();
     851    this->updateShieldWidget();
    852852    this->bShieldActive = false;
    853853    return retShield;
    854854  }
    855 //   this->updateShieldWidget();
     855  this->updateShieldWidget();
    856856  return 0.0;
    857857}
     
    944944OrxGui::GLGuiWidget* WorldEntity::getImplantWidget()
    945945{
    946   this->createImplantWidget();
     946  if(this->implantWidget == NULL)
     947    this->createImplantWidget();
    947948  return this->implantWidget;
    948949}
     
    10831084    this->shieldWidget = new OrxGui::GLGuiEnergyWidgetVertical();
    10841085    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);
    10881089    this->updateShieldWidget();
    10891090//     if (dynamic_cast<SpaceShip*>(this)->hasPlayer())
Note: See TracChangeset for help on using the changeset viewer.