Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 10, 2007, 7:16:00 PM (19 years ago)
Author:
muellmic
Message:

interface changes

File:
1 edited

Legend:

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

    r10194 r10230  
    1010#include "event_listener.h"
    1111#include "glgui_box.h"
     12#include "elements/glgui_energywidgetvertical.h"
    1213
    1314
     
    5354  void updateWeaponManager();
    5455
     56  inline void setTravelZoneWidth(float width)
     57  {
     58    if (width > 1) width = 1;
     59    else if (width < 0) width = 0;
     60
     61    this->travelZoneWidth = width;
     62  };
     63
    5564  void draw() const;
    5665  virtual void process(const Event &event);
     
    6574  unsigned int             resY;
    6675
     76  float                    travelZoneWidth; //the percentage of the screen, the player has got for his movements. should always be a value between 0 and 1;
     77
    6778  OrxGui::GLGuiWidget*     energyWidget;
    6879  OrxGui::GLGuiWidget*     shieldWidget;
    6980  OrxGui::GLGuiWidget*     armorWidget;
    70   //OrxGui::GLGuiBox*        shipValuesBox;
    7181
    7282  OrxGui::GLGuiNotifier*   notifier;
     
    7484  OrxGui::GLGuiRadar*      _radar;
    7585
     86  OrxGui::GLGuiWidget*     rightRect, leftRect;
     87
    7688  WeaponManager*           weaponManager;
    7789  WeaponManager*           weaponManagerSecondary;
    7890
    79   std::list<OrxGui::GLGuiWidget*> weaponsWidgets; //!< WeaponWidgets will be displayed one after another
     91  std::list<OrxGui::GLGuiEnergyWidgetVertical*> weaponsWidgetsPrim; //!< WeaponWidgets will be displayed one after another
     92  std::list<OrxGui::GLGuiEnergyWidgetVertical*> weaponsWidgetsSec;
    8093};
    8194
Note: See TracChangeset for help on using the changeset viewer.