Changeset 10233 in orxonox.OLD for branches/playability/src/util/hud.h
- Timestamp:
- Jan 11, 2007, 11:42:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/util/hud.h
r10230 r10233 54 54 void updateWeaponManager(); 55 55 56 inline void set TravelZoneWidth(float width)56 inline void setOverlayPercentage(int perc) 57 57 { 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; 60 60 61 this->travelZoneWidth = width; 61 this->overlayPercentage = perc; 62 updateResolution(); 63 }; 64 65 inline void setOverlayActive(bool b) 66 { 67 overlayActive = b; 68 updateResolution(); 62 69 }; 63 70 … … 84 91 OrxGui::GLGuiRadar* _radar; 85 92 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; 87 97 88 98 WeaponManager* weaponManager;
Note: See TracChangeset
for help on using the changeset viewer.