Changeset 3099 for code/trunk/src/orxonox/overlays
- Timestamp:
- May 28, 2009, 1:58:22 AM (16 years ago)
- Location:
- code/trunk/src/orxonox/overlays
- Files:
-
- 8 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/CMakeLists.txt
r3089 r3099 3 3 OverlayGroup.cc 4 4 OverlayText.cc 5 FadeoutText.cc 5 6 GUIOverlay.cc 6 7 ) -
code/trunk/src/orxonox/overlays/OverlayText.h
r2662 r3099 47 47 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); 48 48 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(); } 50 50 inline std::string getCaption() const { return this->text_->getCaption(); } 51 51 … … 56 56 inline float getSpaceWidth() const { return this->text_->getSpaceWidth(); } 57 57 58 inline void setColour(const ColourValue& colour) { this->text_->setColour(colour); }58 inline void setColour(const ColourValue& colour) { this->text_->setColour(colour); this->changedColour(); } 59 59 inline const ColourValue& getColour() const { return this->text_->getColour(); } 60 60 … … 70 70 protected: 71 71 virtual void sizeChanged(); 72 virtual void changedColour() {} 73 virtual void changedCaption() {} 72 74 73 75 Ogre::TextAreaOverlayElement* text_; -
code/trunk/src/orxonox/overlays/hud/CMakeLists.txt
r3033 r3099 8 8 ChatOverlay.cc 9 9 GametypeStatus.cc 10 AnnounceMessage.cc 11 KillMessage.cc 12 DeathMessage.cc 10 13 PongScore.cc 11 14 )
Note: See TracChangeset
for help on using the changeset viewer.