Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

moved navigation marker to new class: Navigation

File:
1 edited

Legend:

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

    r1393 r1394  
    6060        orxonoxHUD = om->create("Orxonox/HUD");
    6161        container = static_cast<Ogre::OverlayContainer*>(om->createOverlayElement("Panel", "Orxonox/HUD/container"));
    62         // test
    63         test = static_cast<TextAreaOverlayElement*>(om->createOverlayElement("TextArea", "test123"));
    64         test->show();
    65         test->setMetricsMode(Ogre::GMM_RELATIVE);
    66         test->setDimensions(0.3, 0.3);
    67         test->setPosition(0.02, 0.02);
    68         test->setFontName("Console");
    69         test->setCaption("init");
    7062
    7163        // creating text to display fps
     
    10193        container->setHeight(1.0);
    10294        container->setMetricsMode(Ogre::GMM_RELATIVE);
    103         container->addChild(test);
    10495        container->addChild(fpsText);
    10596
     
    121112    void HUD::tick(float dt)
    122113    {
    123         int d = (float)(nav->getDist2Focus()/10);
    124         if(d) test->setCaption("Distance: " + Ogre::StringConverter::toString(d));
    125         else test->setCaption("");
    126 
    127114        energyBar->resize();
    128115
Note: See TracChangeset for help on using the changeset viewer.