Changeset 11044
- Timestamp:
- Jan 5, 2016, 9:13:31 AM (9 years ago)
- Location:
- code/branches/presentationHS15/src/modules/overlays/hud
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationHS15/src/modules/overlays/hud/HUDWeapon.cc
r11026 r11044 117 117 for (std::vector<WeakPtr<HUDWeaponMode> >::iterator it = hudWeaponModes_.begin(); it != hudWeaponModes_.end(); ++it) 118 118 { 119 (*it)->changedVisibility(); //inform all Child Overlays that our visibility has changed 119 120 (*it)->setVisible(visible); 120 121 } … … 168 169 hudWeaponMode->setOwner(owner_); 169 170 hudWeaponMode->setOverlayGroup(this->getOverlayGroup()); 171 hudWeaponMode->setVisible(this->isVisible()); 170 172 hudWeaponMode->setWeaponMode(it->second); 171 173 hudWeaponMode->setWeaponIndex(this->weaponIndex_); -
code/branches/presentationHS15/src/modules/overlays/hud/HUDWeaponMode.cc
r11026 r11044 218 218 this->textOverlayLeft_->setVisible(visible); 219 219 this->textOverlayRight_->setVisible(visible); 220 221 if (visible)222 {223 overlayElementIcon_->show();224 overlayElementReplenish_->show();225 overlayElementMunition_->show();226 overlayElementState_->show();227 }228 220 } 229 221 -
code/branches/presentationHS15/src/modules/overlays/hud/HUDWeaponSystem.cc
r11026 r11044 105 105 for (std::vector<WeakPtr<HUDWeapon> >::iterator it = hudWeapons_.begin(); it != hudWeapons_.end(); ++it) 106 106 { 107 (*it)->changedVisibility(); //inform all Child Overlays that our visibility has changed 107 108 (*it)->setVisible(visible); 108 109 } … … 150 151 hudWeapon->setOwner(owner_); 151 152 hudWeapon->setOverlayGroup(this->getOverlayGroup()); 153 hudWeapon->setVisible(this->isVisible()); 152 154 hudWeapon->setWeapon(*it); 153 155 hudWeapon->setAspectCorrection(false);
Note: See TracChangeset
for help on using the changeset viewer.