Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6886 for code


Ignore:
Timestamp:
May 10, 2010, 4:26:04 PM (15 years ago)
Author:
sfluecki
Message:

HUDNavigation constructor corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.cc

    r6880 r6886  
    5555{
    5656    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   
    5867//         // create nav text
    5968//         navText_ = static_cast<Ogre::TextAreaOverlayElement*>(Ogre::OverlayManager::getSingleton()
     
    287296                tempRadarViewable->second.first->setTop((-pos.y + 1.0f - tempRadarViewable->second.first->getHeight()) * 0.5f);
    288297
    289                 /*
    290                             aimMarker_->show();
    291                             aimMarker_->setLeft((aimpos.x + 1.0f - aimMarker_->getWidth()) * 0.5f);
    292                             aimMarker_->setTop((-aimpos.y + 1.0f - aimMarker_->getHeight()) * 0.5f);
    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//
    294303                tempRadarViewable->second.second->setLeft((pos.x + 1.0f + tempRadarViewable->second.first->getWidth()) * 0.5f);
    295304                tempRadarViewable->second.second->setTop((-pos.y + 1.0f + tempRadarViewable->second.first->getHeight()) * 0.5f);
     
    301310
    302311    }
    303    
     312
    304313}
    305314
Note: See TracChangeset for help on using the changeset viewer.