Changeset 1388 for code/trunk/src
- Timestamp:
- May 22, 2008, 5:39:19 PM (17 years ago)
- Location:
- code/trunk/src/orxonox/hud
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/hud/HUD.cc
r1387 r1388 67 67 test->setCaption("init"); 68 68 69 // test269 // creating text to display fps 70 70 fpsText = static_cast<TextAreaOverlayElement*>(om->createOverlayElement("TextArea", "fpsText")); 71 71 fpsText->show(); … … 102 102 speedoBar->init(0.01, 0.90, 0.4, container); 103 103 radar->init(0.5, 0.9, 0.2, container); 104 radar->addObject(Vector3( 1500.0, 0.0, 100.0));104 radar->addObject(Vector3(2000.0, 1000.0, 1000.0)); 105 105 radar->addObject(Vector3(0.0, 4000.0, 0.0)); 106 106 radar->addObject(Vector3(0.0, 0.0, 6800.0)); … … 137 137 } 138 138 139 /*static*/void HUD::setEnergy(float value){ 140 HUD::getSingleton().energyBar->setValue(value); 141 } 142 139 143 /*static*/void HUD::cycleRadarFocus(){ 140 144 HUD::getSingleton().radar->cycleFocus(); -
code/trunk/src/orxonox/hud/HUD.h
r1387 r1388 64 64 static HUD& getSingleton(); 65 65 static void setFPS(float fps); 66 static void setEnergy(float value); 66 67 static void cycleRadarFocus(); 67 68 };
Note: See TracChangeset
for help on using the changeset viewer.