Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10233 in orxonox.OLD for branches/playability/src/util/hud.h


Ignore:
Timestamp:
Jan 11, 2007, 11:42:43 PM (19 years ago)
Author:
muellmic
Message:

energy bars are now changing its colors, adding hud overlay - very strange coordinate behaviour tough, awaiting fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/util/hud.h

    r10230 r10233  
    5454  void updateWeaponManager();
    5555
    56   inline void setTravelZoneWidth(float width)
     56  inline void setOverlayPercentage(int perc)
    5757  {
    58     if (width > 1) width = 1;
    59     else if (width < 0) width = 0;
     58    if (perc > 100) perc = 100;
     59    else if (perc < 0) perc = 0;
    6060
    61     this->travelZoneWidth = width;
     61    this->overlayPercentage = perc;
     62    updateResolution();
     63  };
     64
     65  inline void setOverlayActive(bool b)
     66  {
     67    overlayActive = b;
     68    updateResolution();
    6269  };
    6370
     
    8491  OrxGui::GLGuiRadar*      _radar;
    8592
    86   OrxGui::GLGuiWidget*     rightRect, leftRect;
     93  OrxGui::GLGuiWidget*     rightRect;
     94  OrxGui::GLGuiWidget*     leftRect;
     95  bool                     overlayActive;
     96  int                      overlayPercentage; //the percentage of the screen, the player has got for his movements. should always be a value between 0 and 1;
    8797
    8898  WeaponManager*           weaponManager;
Note: See TracChangeset for help on using the changeset viewer.