Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 9, 2013, 9:28:06 PM (11 years ago)
Author:
landauf
Message:

propagate a new Gametype to all elements of an OverlayGroup (fixes issue with the Scoreboard within Gametype)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/orxonox/overlays/OverlayGroup.cc

    r9629 r9630  
    148148        for (std::set< SmartPtr<OrxonoxOverlay> >::iterator it = hudElements_.begin(); it != hudElements_.end(); ++it)
    149149            (*it)->changedVisibility(); //inform all Child Overlays that our visibility has changed
     150    }
     151
     152    //! Changes the gametype of all elements
     153    void OverlayGroup::changedGametype()
     154    {
     155        SUPER( OverlayGroup, changedGametype );
     156
     157        for (std::set< SmartPtr<OrxonoxOverlay> >::iterator it = hudElements_.begin(); it != hudElements_.end(); ++it)
     158            (*it)->setGametype(this->getGametype());
    150159    }
    151160
Note: See TracChangeset for help on using the changeset viewer.