- Timestamp:
- May 22, 2008, 10:00:18 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud3/src/orxonox/hud/RadarOverlayElement.cc
r1350 r1353 30 30 namespace orxonox 31 31 { 32 //ConsoleCommand(RadarOverlayElement, cycleFocus, AccessLevel::User, true); 33 32 34 using namespace Ogre; 33 35 … … 200 202 /*static*/void RadarOverlayElement::cycleFocus(){ 201 203 if(RadarOverlayElement::instance_s == NULL) return; 202 if(RadarOverlayElement::instance_s->focus_ == NULL) 204 205 if(RadarOverlayElement::instance_s->focus_ == NULL){ 203 206 RadarOverlayElement::instance_s->focus_ = RadarOverlayElement::instance_s->firstRadarObject_; 204 else 207 } 208 else{ 209 RadarOverlayElement::instance_s->focus_->panel_->setMaterialName("Orxonox/RedDot"); 205 210 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){ 207 214 RadarOverlayElement::instance_s->navMarker_->hide(); 208 else 215 } 216 else{ 209 217 RadarOverlayElement::instance_s->navMarker_->show(); 218 RadarOverlayElement::instance_s->focus_->panel_->setMaterialName("Orxonox/WhiteDot"); 219 } 210 220 } 211 221 }
Note: See TracChangeset
for help on using the changeset viewer.