Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2009, 4:06:50 PM (15 years ago)
Author:
scheusso
Message:

fixed a logical error in OverlayGroup/OrxonoxOverlay (visibility of overlays in a overlaygroup could not be configured individually)
changed Scoreboard/CreateLines accordingly
set initial visibility of QuestGUI to false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc

    r5781 r5980  
    4848#include "core/ConsoleCommand.h"
    4949
     50#include "OverlayGroup.h"
     51
    5052namespace orxonox
    5153{
     
    165167    void OrxonoxOverlay::changedVisibility()
    166168    {
     169        SUPER( OrxonoxOverlay, changedVisibility );
     170       
    167171        if (!this->overlay_)
    168172            return;
    169173
    170         if (this->isVisible())
     174        // only set to visible if corresponding OverlayGroup is also visible
     175        if (this->isVisible() && (!this->getOverlayGroup() || this->getOverlayGroup()->isVisible()) )
    171176            this->overlay_->show();
    172177        else
Note: See TracChangeset for help on using the changeset viewer.