Changeset 8896 for code/branches/hud
- Timestamp:
- Oct 19, 2011, 4:16:25 PM (13 years ago)
- Location:
- code/branches/hud/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/modules/overlays/hud/HUDNavigation.cc
r8858 r8896 192 192 outOfView = pos.x < -1.0 || pos.x > 1.0 || pos.y < -1.0 || pos.y > 1.0; 193 193 // Get Distance to HumanController and save it in the TextAreaOverlayElement. 194 it->second.text_->setCaption ( multi_cast<std::string> ( dist ) ); 194 //it->second.text_->setCaption ( multi_cast<std::string> ( dist ) ); 195 it->second.text_->setCaption(it->first->getRVName()); 195 196 196 197 if ( outOfView ) -
code/branches/hud/src/orxonox/infos/PlayerInfo.cc
r8706 r8896 36 36 #include "worldentities/ControllableEntity.h" 37 37 #include "controllers/Controller.h" 38 #include "worldentities/pawns/SpaceShip.h" 38 39 39 40 namespace orxonox … … 189 190 190 191 this->changedControllableEntity(); 192 193 SpaceShip* spaceship = dynamic_cast<SpaceShip*>(entity); 194 if (spaceship != NULL) 195 { 196 spaceship->setRVName(this->getName()); 197 } 191 198 } 192 199 -
code/branches/hud/src/orxonox/interfaces/RadarViewable.cc
r8858 r8896 51 51 , radarObjectDescription_("staticObject") 52 52 , scale_(1.0f) 53 , RVName("") 53 54 { 54 55 RegisterRootObject(RadarViewable); -
code/branches/hud/src/orxonox/interfaces/RadarViewable.h
r8738 r8896 60 60 RadarViewable(BaseObject* creator, const WorldEntity* wePtr); 61 61 virtual ~RadarViewable(); 62 63 virtual void setRVName(std::string name) 64 { 65 if (this->RVName != name) 66 { 67 this->RVName = name; 68 this->settingsChanged(); 69 } 70 } 71 72 std::string getRVName() const 73 { return this->RVName; } 62 74 63 75 inline void setRadarObjectCamouflage(float camouflage) … … 152 164 ColourValue radarObjectColour_; 153 165 float scale_; 166 std::string RVName; 154 167 }; 155 168 }
Note: See TracChangeset
for help on using the changeset viewer.