Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/network/src/orxonox/console/InGameConsole.h @ 1494

Last change on this file since 1494 was 1494, checked in by rgrieder, 16 years ago
  • set the svn:eol-style property to all files so, that where ever you check out, you'll get the right line endings (had to change every file with mixed endings to windows in order to set the property)
  • Property svn:eol-style set to native
File size: 3.2 KB
Line 
1/* *   ORXONOX - the hottest 3D action shooter ever to exist *                    > www.orxonox.net < * * *   License notice: * *   This program is free software; you can redistribute it and/or *   modify it under the terms of the GNU General Public License *   as published by the Free Software Foundation; either version 2 *   of the License, or (at your option) any later version. * *   This program is distributed in the hope that it will be useful, *   but WITHOUT ANY WARRANTY; without even the implied warranty of *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *   GNU General Public License for more details. * *   You should have received a copy of the GNU General Public License *   along with this program; if not, write to the Free Software *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. * *   Author: *      Felix Schulthess *   Co-authors: *      Fabian 'x3n' Landau * */#ifndef _InGameConsole_H__#define _InGameConsole_H__
2
3#include "OrxonoxPrereqs.h"
4#include <OgrePrerequisites.h>
5#include <OgreBorderPanelOverlayElement.h>
6#include <OgreTextAreaOverlayElement.h>
7
8#include "core/Tickable.h"
9#include "core/Shell.h"
10namespace orxonox{
11    class _OrxonoxExport InGameConsole : public TickableReal, public ShellListener
12    {
13        public:            static InGameConsole& getInstance();            void setConfigValues();            void tick(float dt);
14            void activate();
15            void deactivate();            void resize();            static void openConsole();            static void closeConsole();
16
17        private:
18            InGameConsole();            InGameConsole(const InGameConsole& other);            ~InGameConsole();            virtual void linesChanged();            virtual void onlyLastLineChanged();            virtual void lineAdded();            virtual void inputChanged();            virtual void cursorChanged();            virtual void exit();            void init();            void shiftLines();            void colourLine(int colourcode, int index);
19            void setCursorPosition(int pos);
20            void print(const std::string& text, int index, bool alwaysShift = false);
21            static Ogre::UTFString convert2UTF(std::string s);
22            static float REL_WIDTH;            static float REL_HEIGHT;            static float BLINK;            int windowW_;
23            int windowH_;            int desiredTextWidth_;            unsigned int maxCharsPerLine_;            unsigned int numLinesShifted_;
24            int scroll_;
25            float scrollTimer_;
26            float cursor_;            unsigned int inputWindowStart_;            char cursorSymbol_;
27            bool active_;
28            bool bShowCursor_;
29            std::string displayedText_;
30            Ogre::OverlayManager* om_;
31            Ogre::Overlay* consoleOverlay_;
32            Ogre::OverlayContainer* consoleOverlayContainer_;
33            Ogre::PanelOverlayElement* consoleOverlayNoise_;
34            Ogre::PanelOverlayElement* consoleOverlayCursor_;
35            Ogre::BorderPanelOverlayElement* consoleOverlayBorder_;
36            Ogre::TextAreaOverlayElement** consoleOverlayTextAreas_;
37    };}#endif /* _InGameConsole_H__ */
Note: See TracBrowser for help on using the repository browser.