Changeset 1353 for code/branches/hud3/src/orxonox/hud
- Timestamp:
- May 22, 2008, 10:00:18 AM (17 years ago)
- Location:
- code/branches/hud3/src/orxonox/hud
- Files:
-
- 2 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 } -
code/branches/hud3/src/orxonox/hud/RadarOverlayElement.h
r1350 r1353 39 39 #include <string.h> 40 40 #include "core/Tickable.h" 41 #include "core/ConsoleCommand.h" 41 42 #include "objects/SpaceShip.h" 42 43 #include "../OrxonoxPrereqs.h"
Note: See TracChangeset
for help on using the changeset viewer.