Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 28, 2008, 10:55:49 PM (17 years ago)
Author:
rgrieder
Message:

Added minimal test files for a statistics overlay.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/overlay/src/orxonox/overlays/OverlayText.h

    r1625 r2036  
    3434#include <string>
    3535#include <OgrePrerequisites.h>
     36#include <OgreTextAreaOverlayElement.h>
    3637#include "OrxonoxOverlay.h"
    3738
     
    4647        virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode);
    4748
    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(); }
    5351
    5452        void setFont(const std::string& font);
     
    5856        float getTextSize() const    { return this->getSize().y; }
    5957
    60         Ogre::TextAreaOverlayElement* text_;
     58    protected:
     59        virtual void sizeChanged();
    6160
    6261    private:
    63         std::string caption_;
     62
     63        Ogre::TextAreaOverlayElement* text_;
    6464    };
    6565}
Note: See TracChangeset for help on using the changeset viewer.