Changeset 1395 for code/trunk/src
- Timestamp:
- May 23, 2008, 6:52:17 PM (17 years ago)
- Location:
- code/trunk/src/orxonox/hud
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/hud/Navigation.cc
r1394 r1395 27 27 28 28 #include <OgreOverlayManager.h> 29 #include <OgreStringConverter.h> 29 30 #include <GraphicsEngine.h> 30 31 #include "objects/SpaceShip.h" … … 109 110 110 111 int d = (float)(getDist2Focus()/10); 111 if(d) test->setCaption("Distance: " + Ogre::StringConverter::toString(d));112 else test->setCaption("");112 if(d) navText_->setCaption("Distance: " + Ogre::StringConverter::toString(d)); 113 else navText_->setCaption(""); 113 114 } 114 115 -
code/trunk/src/orxonox/hud/Navigation.h
r1394 r1395 44 44 Ogre::OverlayContainer* container_; 45 45 Ogre::PanelOverlayElement* navMarker_; // the panel used to show the arrow 46 Ogre::TextAreaOverlayElement navText_; // displaying distance...46 Ogre::TextAreaOverlayElement* navText_; // displaying distance... 47 47 Vector3 shipPos_; // position of ship 48 48 int windowW_, windowH_;
Note: See TracChangeset
for help on using the changeset viewer.