Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1395


Ignore:
Timestamp:
May 23, 2008, 6:52:17 PM (16 years ago)
Author:
FelixSchulthess
Message:

moved navigation marker to new class: Navigation

Location:
code/trunk/src/orxonox/hud
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/hud/Navigation.cc

    r1394 r1395  
    2727
    2828#include <OgreOverlayManager.h>
     29#include <OgreStringConverter.h>
    2930#include <GraphicsEngine.h>
    3031#include "objects/SpaceShip.h"
     
    109110
    110111        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("");
    113114    }
    114115
  • code/trunk/src/orxonox/hud/Navigation.h

    r1394 r1395  
    4444            Ogre::OverlayContainer* container_;
    4545            Ogre::PanelOverlayElement* navMarker_;      // the panel used to show the arrow
    46             Ogre::TextAreaOverlayElement navText_;      // displaying distance...
     46            Ogre::TextAreaOverlayElement* navText_;      // displaying distance...
    4747                Vector3 shipPos_;                           // position of ship
    4848                int windowW_, windowH_;
Note: See TracChangeset for help on using the changeset viewer.