Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 5, 2016, 9:13:31 AM (10 years ago)
Author:
landauf
Message:

fixed visibility of weapon hud:

  • propagate changedVisibility to all child overlays (necessary if the containing overlaygroup changes its visibility)
  • initialize the visibility of child overlays (necessary if the visibility of the weaponsystem is 'false' in the hud definition)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationHS15/src/modules/overlays/hud/HUDWeaponSystem.cc

    r11026 r11044  
    105105        for (std::vector<WeakPtr<HUDWeapon> >::iterator it = hudWeapons_.begin(); it != hudWeapons_.end(); ++it)
    106106        {
     107            (*it)->changedVisibility(); //inform all Child Overlays that our visibility has changed
    107108            (*it)->setVisible(visible);
    108109        }
     
    150151            hudWeapon->setOwner(owner_);
    151152            hudWeapon->setOverlayGroup(this->getOverlayGroup());
     153            hudWeapon->setVisible(this->isVisible());
    152154            hudWeapon->setWeapon(*it);
    153155            hudWeapon->setAspectCorrection(false);
Note: See TracChangeset for help on using the changeset viewer.