Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 22, 2008, 5:39:19 PM (17 years ago)
Author:
FelixSchulthess
Message:

more static hud functions

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

Legend:

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

    r1387 r1388  
    6767        test->setCaption("init");
    6868
    69         // test2
     69        // creating text to display fps
    7070        fpsText = static_cast<TextAreaOverlayElement*>(om->createOverlayElement("TextArea", "fpsText"));
    7171        fpsText->show();
     
    102102        speedoBar->init(0.01, 0.90, 0.4, container);
    103103        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));
    105105        radar->addObject(Vector3(0.0, 4000.0, 0.0));
    106106        radar->addObject(Vector3(0.0, 0.0, 6800.0));
     
    137137    }
    138138
     139    /*static*/void HUD::setEnergy(float value){
     140        HUD::getSingleton().energyBar->setValue(value);
     141    }
     142
    139143    /*static*/void HUD::cycleRadarFocus(){
    140144        HUD::getSingleton().radar->cycleFocus();
  • code/trunk/src/orxonox/hud/HUD.h

    r1387 r1388  
    6464            static HUD& getSingleton();
    6565            static void setFPS(float fps);
     66            static void setEnergy(float value);
    6667            static void cycleRadarFocus();
    6768    };
Note: See TracChangeset for help on using the changeset viewer.