Changeset 10693 in orxonox.OLD for branches/hud
- Timestamp:
 - Jun 14, 2007, 1:20:36 PM (18 years ago)
 - Location:
 - branches/hud/src
 - Files:
 - 
          
- 3 edited
 
- 
          util/hud.cc (modified) (1 diff)
 - 
          world_entities/player.cc (modified) (2 diffs)
 - 
          world_entities/space_ships/space_ship.cc (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/hud/src/util/hud.cc
r10685 r10693 183 183 { 184 184 this->healthWidget = new OrxGui::GLGuiBar(); 185 this->healthWidget->setMaximum(widget->getBarWidget()->maximum());186 this->healthWidget->setValue(widget->getBarWidget()->value());187 this->healthWidget->setParent2D(this->barSocket);185 dynamic_cast<OrxGui::GLGuiBar*> (this->healthWidget)->setMaximum(dynamic_cast<OrxGui::GLGuiEnergyWidgetVertical*> (widget)->getBarWidget()->maximum()); 186 dynamic_cast<OrxGui::GLGuiBar*> (this->healthWidget)->setValue(dynamic_cast<OrxGui::GLGuiEnergyWidgetVertical*> (widget)->getBarWidget()->value()); 187 this->healthWidget->setParent2D(this->barSocket); 188 188 } 189 189 else  - 
        
branches/hud/src/world_entities/player.cc
r10685 r10693 19 19 20 20 #include "event_handler.h" 21 #include " fps_player.h"21 #include "creatures/fps_player.h" 22 22 23 23 #include "state.h" … … 76 76 this->playable = playable; 77 77 78 if( playable->isA(F psPlayer::staticClassID()) )78 if( playable->isA(FPSPlayer::staticClassID()) ) 79 79 { 80 this->_hud.setMod (Hud::PlaymodeFirstPerson);80 this->_hud.setMode(Hud::FirstPerson); 81 81 this->_hud.setHealthWidget(this->playable->getHealthWidget()); 82 82 } 83 83 else 84 84 { 85 this->_hud.setMode(Hud:: PlaymodeFull3D);85 this->_hud.setMode(Hud::Full3D); 86 86 this->_hud.setHealthWidget(this->playable->getHealthWidget()); 87 87 }  - 
        
branches/hud/src/world_entities/space_ships/space_ship.cc
r10618 r10693 1135 1135 this->updateShieldWidget(); 1136 1136 if (this->hasPlayer()) 1137 State::getPlayer()->hud().setShi ledWidget(this->shieldWidget);1137 State::getPlayer()->hud().setShieldWidget(this->shieldWidget); 1138 1138 } 1139 1139 }  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






