Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2009, 1:58:22 AM (15 years ago)
Author:
landauf
Message:

Added Gameplay messages (Announces, Killmessages and Deathmessages)

Location:
code/trunk/src/orxonox/overlays
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/CMakeLists.txt

    r3089 r3099  
    33  OverlayGroup.cc
    44  OverlayText.cc
     5  FadeoutText.cc
    56  GUIOverlay.cc
    67)
  • code/trunk/src/orxonox/overlays/OverlayText.h

    r2662 r3099  
    4747        virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode);
    4848
    49         inline void setCaption(const std::string& caption) { this->text_->setCaption(caption); }
     49        inline void setCaption(const std::string& caption) { this->text_->setCaption(caption); this->changedCaption(); }
    5050        inline std::string getCaption() const              { return this->text_->getCaption(); }
    5151
     
    5656        inline float getSpaceWidth() const     { return this->text_->getSpaceWidth(); }
    5757
    58         inline void setColour(const ColourValue& colour) { this->text_->setColour(colour); }
     58        inline void setColour(const ColourValue& colour) { this->text_->setColour(colour); this->changedColour(); }
    5959        inline const ColourValue& getColour() const      { return this->text_->getColour(); }
    6060
     
    7070    protected:
    7171        virtual void sizeChanged();
     72        virtual void changedColour() {}
     73        virtual void changedCaption() {}
    7274
    7375        Ogre::TextAreaOverlayElement* text_;
  • code/trunk/src/orxonox/overlays/hud/CMakeLists.txt

    r3033 r3099  
    88  ChatOverlay.cc
    99  GametypeStatus.cc
     10  AnnounceMessage.cc
     11  KillMessage.cc
     12  DeathMessage.cc
    1013  PongScore.cc
    1114)
Note: See TracChangeset for help on using the changeset viewer.