Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2008, 4:05:25 AM (15 years ago)
Author:
rgrieder
Message:

Added stats overlay. "OverlayGroup toggleVisibility Stats" will do what it says.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/overlays/stats/CreateLines.h

    • Property svn:eol-style set to native
    r2492 r2495  
    4040namespace orxonox
    4141{
    42     class _OrxonoxExport CreateLines : public OrxonoxOverlay
     42    class _OrxonoxExport CreateLines
    4343    {
    4444
    4545    public: // functions
    46         CreateLines(BaseObject* creator);
    47         virtual ~CreateLines() {}
     46        CreateLines(float, float, float, float);
     47        virtual ~CreateLines();
    4848
    49         virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode);
     49        void setPlayerName(const std::string&);
     50        void setScore(const std::string&);
     51        void setDeaths(const std::string&);
    5052
    51         void setNumberOfColumns(unsigned int numberOfColumns, unsigned int lineIndex);
    52         void alignColumn(int columnIndex, float leftOffset, float topOffset);
    53         void setColumnText(int columnIndex, std::string columnText);
     53        void setVisibility(bool);
     54
     55        //void setNumberOfColumns(unsigned int numberOfColumns, unsigned int lineIndex);
     56        //void alignColumn(int columnIndex, float leftOffset, float topOffset);
     57        //void setColumnText(int columnIndex, std::string columnText);
    5458
    5559    private: // functions
    5660
    5761    private: // variables
    58         std::vector<Ogre::TextAreaOverlayElement*> textColumns_;
     62        //std::vector<OverlayText*> textColumns_;
     63        OverlayText* playerNameText_;
     64        OverlayText* scoreText_;
     65        OverlayText* deathsText_;
     66
     67        Stats* background_;
    5968
    6069    };
Note: See TracChangeset for help on using the changeset viewer.