- Timestamp:
- Oct 29, 2015, 11:27:32 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fabienHS15/src/modules/overlays/hud/HUDWeaponMode.h
r10688 r10721 1 1 2 /* 2 3 * ORXONOX - the hottest 3D action shooter ever to exist … … 58 59 59 60 virtual void tick(float dt); 61 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 60 62 virtual void changedOwner(); 61 63 virtual void changedOverlayGroup(); … … 63 65 virtual void changedName(); 64 66 virtual void positionChanged(); 67 virtual void sizeChanged(); 65 68 66 69 virtual void setWeaponMode(WeaponMode* weaponMode); 67 70 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 68 88 private: 69 virtual void positionHUDChilds(); 89 virtual void updateSize(); 90 virtual void updatePosition(); 70 91 71 92 WeakPtr<Pawn> owner_; … … 81 102 StrongPtr<OverlayText> textOverlayLeft_; 82 103 StrongPtr<OverlayText> textOverlayRight_; 104 105 Vector2 weaponModeHUDActualSize_; 106 int weaponIndex_; 107 int weaponModeIndex_; 83 108 }; 84 109 }
Note: See TracChangeset
for help on using the changeset viewer.