Changeset 1590 for code/branches/hud/src/orxonox/hud/HUD.cc
- Timestamp:
- Jun 12, 2008, 12:57:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/hud/HUD.cc
r1588 r1590 107 107 Ogre::OverlayManager::getSingleton().destroy(this->orxonoxHUD_); 108 108 this->orxonoxHUD_ = 0; 109 110 if (this->nav_)111 delete this->nav_;112 this->nav_ = 0;113 109 } 114 110 … … 143 139 radar_->init(0.5, 0.9, 0.2, container_); 144 140 145 // create Navigation146 nav_ = new Navigation(container_);147 148 141 WorldEntity* object; 149 142 object = new WorldEntity(); … … 189 182 { 190 183 radar_->update(); 191 nav_->update(); 192 } 193 194 void HUD::resize() 184 } 185 186 void HUD::windowResized(int newWidth, int newHeight) 195 187 { 196 188 this->radar_->resize(); … … 215 207 if ((*it)->getObject() == object) 216 208 { 217 if (this->nav_ && this->nav_->getFocus() == (*it))218 this->nav_->releaseFocus(); 209 /*if (this->nav_ && this->nav_->getFocus() == (*it)) 210 this->nav_->releaseFocus();*/ 219 211 220 212 delete (*it); … … 243 235 } 244 236 245 /*static*/ void HUD::cycleNavigationFocus(){ 246 HUD::getSingleton().nav_->cycleFocus(); 237 /*static*/ void HUD::cycleNavigationFocus() 238 { 239 if (HUD::getSingleton().hudElements_.find("Navigation") != HUD::getSingleton().hudElements_.end()) 240 { 241 Navigation* navi = dynamic_cast<Navigation*>(HUD::getSingleton().hudElements_["Navigation"]); 242 navi->cycleFocus(); 243 } 247 244 } 248 245 249 246 /*static*/ void HUD::releaseNavigationFocus(){ 250 HUD::getSingleton().nav_->releaseFocus();247 //HUD::getSingleton().nav_->releaseFocus(); 251 248 } 252 249 }
Note: See TracChangeset
for help on using the changeset viewer.