Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 29, 2015, 11:27:32 PM (9 years ago)
Author:
fvultier
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fabienHS15/src/modules/overlays/hud/HUDWeaponMode.h

    r10688 r10721  
     1
    12/*
    23 *   ORXONOX - the hottest 3D action shooter ever to exist
     
    5859
    5960        virtual void tick(float dt);
     61        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    6062        virtual void changedOwner();
    6163        virtual void changedOverlayGroup();
     
    6365        virtual void changedName();
    6466        virtual void positionChanged();
     67        virtual void sizeChanged();
    6568
    6669        virtual void setWeaponMode(WeaponMode* weaponMode);
    6770
     71        inline void setWeaponModeHUDActualSize(Vector2 vector)
     72            { weaponModeHUDActualSize_ = vector;
     73              this->updateSize();
     74            }
     75        inline Vector2 getWeaponModeHUDActualSize() const
     76            { return weaponModeHUDActualSize_; }
     77        inline void setWeaponIndex(int index)
     78            { weaponIndex_ = index;
     79              this->updatePosition();
     80            }
     81        inline void setWeaponModeIndex(int index)
     82            { weaponModeIndex_ = index;
     83              this->updatePosition();
     84            }
     85
     86        virtual void positionHUDChilds();
     87
    6888    private:
    69         virtual void positionHUDChilds();
     89        virtual void updateSize();
     90        virtual void updatePosition();
    7091
    7192        WeakPtr<Pawn> owner_;
     
    81102        StrongPtr<OverlayText> textOverlayLeft_;
    82103        StrongPtr<OverlayText> textOverlayRight_;
     104
     105        Vector2 weaponModeHUDActualSize_;
     106        int weaponIndex_;
     107        int weaponModeIndex_;
    83108    };
    84109}
Note: See TracChangeset for help on using the changeset viewer.