Changeset 6886 for code/branches/hudelements/src/modules/overlays
- Timestamp:
- May 10, 2010, 4:26:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.cc
r6880 r6886 55 55 { 56 56 RegisterObject(HUDNavigation); 57 57 58 59 const std::set<RadarViewable*>& respawnObjectSet_ = this->getOwner()->getScene()->getRadar()->getRadarObjects(); 60 std::set<RadarViewable*>::const_iterator respawnObjectSetIt_; 61 62 if(!respawnObjectSet_.empty()){ 63 for(respawnObjectSetIt_ = respawnObjectSet_.begin(); respawnObjectSetIt_ != respawnObjectSet_.end(); 64 ++respawnObjectSetIt_){ addObject(*respawnObjectSetIt_);} 65 } 66 58 67 // // create nav text 59 68 // navText_ = static_cast<Ogre::TextAreaOverlayElement*>(Ogre::OverlayManager::getSingleton() … … 287 296 tempRadarViewable->second.first->setTop((-pos.y + 1.0f - tempRadarViewable->second.first->getHeight()) * 0.5f); 288 297 289 /* 290 291 292 293 */298 299 // aimMarker_->show(); 300 // aimMarker_->setLeft((aimpos.x + 1.0f - aimMarker_->getWidth()) * 0.5f); 301 // aimMarker_->setTop((-aimpos.y + 1.0f - aimMarker_->getHeight()) * 0.5f); 302 // 294 303 tempRadarViewable->second.second->setLeft((pos.x + 1.0f + tempRadarViewable->second.first->getWidth()) * 0.5f); 295 304 tempRadarViewable->second.second->setTop((-pos.y + 1.0f + tempRadarViewable->second.first->getHeight()) * 0.5f); … … 301 310 302 311 } 303 312 304 313 } 305 314
Note: See TracChangeset
for help on using the changeset viewer.