Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2008, 3:05:27 PM (17 years ago)
Author:
FelixSchulthess
Message:

added speedometer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud3/src/orxonox/hud/BarOverlayElement.h

    r1283 r1314  
    4444  {
    4545  private:
    46    
     46
    4747    int percentage_;
    48     int dir_;   
     48    int dir_;
    4949    int left_;
    5050    int top_;
    5151    int width_;
    5252    int height_;
     53    Ogre::Real leftRel_;
     54    Ogre::Real topRel_;
     55    Ogre::Real widthRel_;
     56    Ogre::Real heightRel_;
     57    int windowW_, windowH_;
    5358
    5459    static Ogre::String& typeName_s;
     
    6974    virtual void initialise();
    7075
    71     void initBarOverlayElement(Real left, Real top, Real width, Real height,
     76    void initBarOverlayElement(Real leftRel, Real topRel, Real widthRel, Real heightRel,
    7277          int dir,  int colour);
    7378
     
    7782  };
    7883
    79  
     84
    8085  class _OrxonoxExport SmartBarOverlayElement : public BarOverlayElement
    8186  {
     
    8388
    8489    public:
    85      
     90
    8691      SmartBarOverlayElement(const Ogre::String& name);
    8792      virtual ~SmartBarOverlayElement(void);
    8893      virtual void initialise();
    89      
     94
    9095      void initSmartBarOverlayElement(Ogre::Real left, Ogre::Real top, Ogre::Real width, Ogre::Real height, int dir);
    9196      void reset(int percentage);
    92      
     97
    9398  };
    9499}
Note: See TracChangeset for help on using the changeset viewer.