Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 5, 2016, 9:13:31 AM (8 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/HUDWeapon.cc

    r11026 r11044  
    117117        for (std::vector<WeakPtr<HUDWeaponMode> >::iterator it = hudWeaponModes_.begin(); it != hudWeaponModes_.end(); ++it)
    118118        {
     119            (*it)->changedVisibility(); //inform all Child Overlays that our visibility has changed
    119120            (*it)->setVisible(visible);
    120121        }
     
    168169            hudWeaponMode->setOwner(owner_);
    169170            hudWeaponMode->setOverlayGroup(this->getOverlayGroup());
     171            hudWeaponMode->setVisible(this->isVisible());
    170172            hudWeaponMode->setWeaponMode(it->second);
    171173            hudWeaponMode->setWeaponIndex(this->weaponIndex_);                   
Note: See TracChangeset for help on using the changeset viewer.