Changeset 1394 for code/trunk/src/orxonox/hud/HUD.cc
- Timestamp:
- May 23, 2008, 6:49:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/hud/HUD.cc
r1393 r1394 60 60 orxonoxHUD = om->create("Orxonox/HUD"); 61 61 container = static_cast<Ogre::OverlayContainer*>(om->createOverlayElement("Panel", "Orxonox/HUD/container")); 62 // test63 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");70 62 71 63 // creating text to display fps … … 101 93 container->setHeight(1.0); 102 94 container->setMetricsMode(Ogre::GMM_RELATIVE); 103 container->addChild(test);104 95 container->addChild(fpsText); 105 96 … … 121 112 void HUD::tick(float dt) 122 113 { 123 int d = (float)(nav->getDist2Focus()/10);124 if(d) test->setCaption("Distance: " + Ogre::StringConverter::toString(d));125 else test->setCaption("");126 127 114 energyBar->resize(); 128 115
Note: See TracChangeset
for help on using the changeset viewer.