Changeset 2036 for code/branches/overlay/src/orxonox/overlays/OverlayText.h
- Timestamp:
- Oct 28, 2008, 10:55:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/overlay/src/orxonox/overlays/OverlayText.h
r1625 r2036 34 34 #include <string> 35 35 #include <OgrePrerequisites.h> 36 #include <OgreTextAreaOverlayElement.h> 36 37 #include "OrxonoxOverlay.h" 37 38 … … 46 47 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); 47 48 48 protected: 49 virtual void sizeChanged(); 50 51 void setCaption(const std::string& caption) { this->caption_ = caption; } 52 const std::string& getCaption() const { return this->caption_; } 49 void setCaption(const std::string& caption) { this->text_->setCaption(caption); } 50 std::string getCaption() const { return this->text_->getCaption(); } 53 51 54 52 void setFont(const std::string& font); … … 58 56 float getTextSize() const { return this->getSize().y; } 59 57 60 Ogre::TextAreaOverlayElement* text_; 58 protected: 59 virtual void sizeChanged(); 61 60 62 61 private: 63 std::string caption_; 62 63 Ogre::TextAreaOverlayElement* text_; 64 64 }; 65 65 }
Note: See TracChangeset
for help on using the changeset viewer.