Changeset 10362 in orxonox.OLD for branches/playability.new/src/util/hud.h
- Timestamp:
- Jan 25, 2007, 3:05:01 AM (17 years ago)
- Location:
- branches/playability.new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability.new
- Property svn:ignore
-
old new 10 10 autom4te.cache 11 11 aclocal.m4 12 tags 13 test.bmp 14 config.sub 15 config.guess 16 OrxonoxPlayability.kdevses 17 OrxonoxPlayability.kdevelop.pcs
-
- Property svn:ignore
-
branches/playability.new/src/util/hud.h
r9869 r10362 9 9 #include "element_2d.h" 10 10 #include "event_listener.h" 11 #include "glgui_box.h" 12 #include "elements/glgui_energywidgetvertical.h" 11 13 12 14 … … 39 41 void setShiledWidget(OrxGui::GLGuiWidget* widget); 40 42 void setArmorWidget(OrxGui::GLGuiWidget* widget); 41 void setWeaponManager(WeaponManager* weaponMan); 43 inline OrxGui::GLGuiWidget* getEnergyWidget() {return this->energyWidget;}; 44 inline OrxGui::GLGuiWidget* getShieldWidget() {return this->shieldWidget;}; 45 inline OrxGui::GLGuiWidget* getArmorWidget() {return this->armorWidget;}; 46 47 void setWeaponManager(WeaponManager* weaponMan, WeaponManager* weaponManSec = NULL); 48 inline void setRadarCenterNode(PNode* node) {this->radarCenterNode = node;}; 42 49 43 50 void addWeaponWidget(OrxGui::GLGuiWidget* widget); … … 47 54 48 55 void updateWeaponManager(); 56 //void clearWeaponManager(); 57 58 inline void setOverlayPercentage(int perc) 59 { 60 if (perc > 100) perc = 100; 61 else if (perc < 0) perc = 0; 62 63 this->overlayPercentage = perc; 64 updateResolution(); 65 }; 66 67 inline void setOverlayActive(bool b) 68 { 69 overlayActive = b; 70 updateResolution(); 71 }; 49 72 50 73 void draw() const; … … 54 77 private: 55 78 void updateResolution(); 79 //void createShipValuesBox(); 56 80 57 81 private: 58 82 unsigned int resX; 59 83 unsigned int resY; 84 85 float travelZoneWidth; //the percentage of the screen, the player has got for his movements. should always be a value between 0 and 1; 60 86 61 87 OrxGui::GLGuiWidget* energyWidget; … … 66 92 OrxGui::GLGuiInputLine* inputLine; 67 93 OrxGui::GLGuiRadar* _radar; 94 PNode* radarCenterNode; 95 96 OrxGui::GLGuiWidget* rightRect; 97 OrxGui::GLGuiWidget* leftRect; 98 bool overlayActive; 99 int overlayPercentage; //the percentage of the screen, the player has got for his movements. should always be a value between 0 and 1; 68 100 69 101 WeaponManager* weaponManager; 102 WeaponManager* weaponManagerSecondary; 70 103 71 std::list<OrxGui::GLGuiWidget*> weaponsWidgets; //!< WeaponWidgets will be displayed one after another 104 std::list<OrxGui::GLGuiEnergyWidgetVertical*> weaponsWidgetsPrim; //!< WeaponWidgets will be displayed one after another 105 std::list<OrxGui::GLGuiEnergyWidgetVertical*> weaponsWidgetsSec; 72 106 }; 73 107
Note: See TracChangeset
for help on using the changeset viewer.