- Timestamp:
- Oct 30, 2015, 7:51:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fabienHS15/src/modules/overlays/hud/HUDWeaponSystem.cc
r10721 r10724 21 21 * 22 22 * Author: 23 * Yuning Chai 24 * Felix Schulthess 23 * Fabien Vultier 25 24 * Co-authors: 26 * Reto Grieder 27 * Wolfgang Roenninger 25 * ... 28 26 * 29 27 */ … … 31 29 #include "HUDWeaponSystem.h" 32 30 33 #include <OgreOverlayManager.h>34 #include <OgrePanelOverlayElement.h>35 36 31 #include "core/CoreIncludes.h" 37 32 #include "core/XMLPort.h" 38 #include "tools/TextureGenerator.h"39 33 #include "weaponsystem/WeaponSystem.h" 40 34 #include "weaponsystem/WeaponPack.h" … … 73 67 } 74 68 75 void HUDWeaponSystem::tick(float dt)76 {77 SUPER(HUDWeaponSystem, tick, dt);78 79 if (this->owner_)80 {81 82 }83 }84 85 69 void HUDWeaponSystem::positionChanged() 86 70 { … … 111 95 { 112 96 SUPER(HUDWeaponSystem, changedOverlayGroup); 113 114 //this->getOverlayGroup()->addElement(this->textOverlay_.get());115 97 } 116 98 … … 118 100 { 119 101 SUPER(HUDWeaponSystem, changedVisibility); 120 121 //this->textOverlay_->setVisible(this->isVisible());122 102 } 123 103 … … 125 105 { 126 106 SUPER(HUDWeaponSystem, changedName); 127 128 //this->textOverlay_->setName(this->getName() + "text");129 107 } 130 108 … … 178 156 { 179 157 int positionIndex = 0; 180 //this->setSize(weaponModeHUDSize_);181 // this->weaponModeHUDActualSize_ = this->getActualSize();182 158 183 159 for (std::vector<WeakPtr<HUDWeapon> >::iterator it = hudWeapons_.begin(); it != hudWeapons_.end(); ++it) … … 185 161 (*it)->setWeaponIndex(positionIndex); 186 162 (*it)->setWeaponModeHUDActualSize(this->weaponModeHUDActualSize_); 187 (*it)->positionHUDChilds();188 163 189 164 ++ positionIndex;
Note: See TracChangeset
for help on using the changeset viewer.