Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 22, 2008, 10:00:18 AM (16 years ago)
Author:
FelixSchulthess
Message:

minor enhancement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud3/src/orxonox/hud/RadarOverlayElement.cc

    r1350 r1353  
    3030namespace orxonox
    3131{
     32    //ConsoleCommand(RadarOverlayElement, cycleFocus, AccessLevel::User, true);
     33
    3234    using namespace Ogre;
    3335
     
    200202        /*static*/void RadarOverlayElement::cycleFocus(){
    201203            if(RadarOverlayElement::instance_s == NULL) return;
    202             if(RadarOverlayElement::instance_s->focus_ == NULL)
     204
     205            if(RadarOverlayElement::instance_s->focus_ == NULL){
    203206            RadarOverlayElement::instance_s->focus_ = RadarOverlayElement::instance_s->firstRadarObject_;
    204         else
     207            }
     208        else{
     209            RadarOverlayElement::instance_s->focus_->panel_->setMaterialName("Orxonox/RedDot");
    205210            RadarOverlayElement::instance_s->focus_ = RadarOverlayElement::instance_s->focus_->next;
    206         if(RadarOverlayElement::instance_s->focus_ == NULL)
     211        }
     212
     213        if(RadarOverlayElement::instance_s->focus_ == NULL){
    207214            RadarOverlayElement::instance_s->navMarker_->hide();
    208         else
     215        }
     216        else{
    209217            RadarOverlayElement::instance_s->navMarker_->show();
     218            RadarOverlayElement::instance_s->focus_->panel_->setMaterialName("Orxonox/WhiteDot");
     219        }
    210220        }
    211221}
Note: See TracChangeset for help on using the changeset viewer.