Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1388 for code


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

more static hud functions

Location:
code/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/bin/levels/sample.oxw

    r1376 r1388  
    1212<Skybox src="Orxonox/Starbox" />
    1313<SpaceShip camera="true" position="0,0,0" scale="10" yawpitchroll="0,0,0" mesh="assff.mesh" maxSpeed="500" maxSideAndBackSpeed="50" maxRotation="1.0" transAcc="200" rotAcc="3.0" transDamp="75" rotDamp="1.0" />
    14 <Model position="1500,0,100" scale="10" mesh="tomato.mesh" yawpitchroll="-40,30,0" rotationAxis="1,0,0" rotationRate="-30"/>
     14<Model position="2000,1000,1000" scale="10" mesh="tomato.mesh" yawpitchroll="-40,30,0" rotationAxis="1,0,0" rotationRate="-30"/>
    1515<Model position="0,4200,0" scale="10" mesh="tomato.mesh" yawpitchroll="-50,60,0" rotationAxis="1,0,0" rotationRate="-30"/>
    1616<Model position="0,0,6800" scale="10" mesh="tomato.mesh" yawpitchroll="-50,-30,0" rotationAxis="1,0,0" rotationRate="-30"/>
  • 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.