Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7920


Ignore:
Timestamp:
Feb 20, 2011, 12:33:06 AM (13 years ago)
Author:
bknecht
Message:

added HUDBoostBar, an additional bar in the HUD to determine available boost. The bar is invisible when we have permanent boost.

Location:
code/branches/hudimprovements
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hudimprovements/data/overlays/HUDTemplates3.oxo

    r7679 r7920  
    3535     background        = "Orxonox/HealthBarBackground"
    3636     size              = "0.35, 0.0875"
    37      position          = "0.0 , 0.95 "
     37     position          = "0.0 , 0.9 "
    3838     pickpoint         = "0, 1"
    3939     bartexture        = "healthbar_bar.png"
     
    5656     background    = "Orxonox/BarBackground"
    5757     size          = "0.35, 0.05"
    58      position      = "0.0 , 1.0 "
     58     position      = "0.0 , 0.95 "
    5959     pickpoint     = "0, 1"
    6060     correctaspect = false
     
    6464      <BarColour position = 1.0 colour = "0.7,0.2,0.2" />
    6565    </HUDSpeedBar>
     66
     67    <HUDBoostBar
     68     name          = "BoostBar1"
     69     background    = "Orxonox/BarBackground"
     70     size          = "0.35, 0.05"
     71     position      = "0.0 , 1.0 "
     72     pickpoint     = "0, 1"
     73     correctaspect = false
     74    >
     75      <BarColour position = 0.0 colour = "0.7,0.2,0.2" />
     76      <BarColour position = 0.5 colour = "0.7,0.7,0.2" />
     77      <BarColour position = 1.0 colour = "0.2,0.7,0.2" />
     78    </HUDBoostBar>
    6679
    6780    <HUDNavigation
  • code/branches/hudimprovements/src/modules/overlays/OverlaysPrereqs.h

    r7655 r7920  
    8686    class HUDRadar;
    8787    class HUDSpeedBar;
     88    class HUDBoostBar;
    8889    class HUDTimer;
    8990    class KillMessage;
  • code/branches/hudimprovements/src/modules/overlays/hud/CMakeLists.txt

    r7655 r7920  
    44  HUDRadar.cc
    55  HUDSpeedBar.cc
     6  HUDBoostBar.cc
    67  HUDHealthBar.cc
    78  HUDTimer.cc
  • code/branches/hudimprovements/src/orxonox/worldentities/pawns/SpaceShip.h

    r7801 r7920  
    7474                { return this->bBoost_; }
    7575
     76            inline float getBoostPower()
     77                { return this->boostPower_; }
     78            inline float getInitialBoostPower()
     79                { return this->initialBoostPower_; }
     80
    7681            inline void setEngineTemplate(const std::string& temp)
    7782                { this->enginetemplate_ = temp; this->loadEngineTemplate(); }
     
    108113
    109114            void loadEngineTemplate();
    110            
     115
    111116            void boostCooledDown(void);
    112117
Note: See TracChangeset for help on using the changeset viewer.