Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 9, 2015, 2:02:01 PM (9 years ago)
Author:
landauf
Message:

create the scoreboard directly with the correct gametype. this prevents that we have to re-set the gametype (and pass it to sub-overlays).

File:
1 edited

Legend:

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

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