Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 15, 2009, 1:44:25 PM (15 years ago)
Author:
rgrieder
Message:

Merged revisions 6054, 6056 and 6057 to particles2 branch.

Location:
code/branches/particles2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/particles2

  • code/branches/particles2/src/modules/overlays/hud/UnderAttackHealthBar.cc

    r5929 r6067  
    3434#include "gametypes/UnderAttack.h"
    3535#include "worldentities/pawns/Destroyer.h"
     36#include "overlays/OverlayGroup.h"
    3637
    3738namespace orxonox
     
    5859    {
    5960        if (this->isInitialized())
     61        {
    6062            this->text_->destroy();
     63            this->text_ = 0;
     64        }
    6165    }
    6266
     
    9094        }
    9195    }
     96   
     97    void UnderAttackHealthBar::changedOverlayGroup()
     98    {
     99        SUPER(UnderAttackHealthBar, changedOverlayGroup);
     100       
     101        this->getOverlayGroup()->addElement(this->text_.get());
     102    }
    92103
    93104    void UnderAttackHealthBar::init()
Note: See TracChangeset for help on using the changeset viewer.