Changeset 1577 for code/trunk/src/orxonox/console/InGameConsole.h
- Timestamp:
- Jun 9, 2008, 6:21:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/console/InGameConsole.h
r1540 r1577 44 44 class _OrxonoxExport InGameConsole : public TickableReal, public ShellListener 45 45 { 46 public: 46 public: // functions 47 void initialise(); 48 void destroy(); 49 void setConfigValues(); 50 51 void tick(float dt); 52 void resize(); 53 47 54 static InGameConsole& getInstance(); 48 55 49 void setConfigValues();50 void tick(float dt);51 52 void resize();53 56 static void openConsole(); 54 57 static void closeConsole(); 55 58 56 private: 59 private: // functions 57 60 InGameConsole(); 58 InGameConsole(const InGameConsole& other) ;61 InGameConsole(const InGameConsole& other) {} 59 62 ~InGameConsole(); 60 63 … … 62 65 void deactivate(); 63 66 64 v irtual void linesChanged();65 v irtual void onlyLastLineChanged();66 v irtual void lineAdded();67 v irtual void inputChanged();68 v irtual void cursorChanged();69 v irtual void exit();67 void linesChanged(); 68 void onlyLastLineChanged(); 69 void lineAdded(); 70 void inputChanged(); 71 void cursorChanged(); 72 void exit(); 70 73 71 void init();72 74 void shiftLines(); 73 75 void colourLine(int colourcode, int index); 74 76 void setCursorPosition(unsigned int pos); 75 77 void print(const std::string& text, int index, bool alwaysShift = false); 78 76 79 static Ogre::UTFString convert2UTF(std::string s); 77 80 78 static float REL_WIDTH; 79 static float REL_HEIGHT; 80 static float BLINK; 81 81 private: // variables 82 82 bool bActive_; 83 83 int windowW_; … … 92 92 bool bShowCursor_; 93 93 std::string displayedText_; 94 Ogre::OverlayManager* om_;95 94 Ogre::Overlay* consoleOverlay_; 96 95 Ogre::OverlayContainer* consoleOverlayContainer_; 97 96 Ogre::PanelOverlayElement* consoleOverlayNoise_; 98 Ogre:: PanelOverlayElement* consoleOverlayCursor_;97 Ogre::TextAreaOverlayElement* consoleOverlayCursor_; 99 98 Ogre::BorderPanelOverlayElement* consoleOverlayBorder_; 100 99 Ogre::TextAreaOverlayElement** consoleOverlayTextAreas_; 100 101 // config values 102 float relativeWidth; 103 float relativeHeight; 104 float blinkTime; 105 float scrollSpeed_; 106 float noiseSize_; 101 107 }; 102 108 }
Note: See TracChangeset
for help on using the changeset viewer.