Changeset 1615 for code/branches/hud/src/orxonox/overlays/console
- Timestamp:
- Jun 22, 2008, 12:06:55 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/overlays/console/InGameConsole.cc
r1601 r1615 54 54 SetConsoleCommand(InGameConsole, closeConsole, true); 55 55 56 using namespace Ogre;57 58 56 /** 59 57 @brief Constructor: Creates and initializes the InGameConsole. … … 119 117 120 118 // create a container 121 this->consoleOverlayContainer_ = static_cast<O verlayContainer*>(ovMan->createOverlayElement("Panel", "InGameConsoleContainer"));119 this->consoleOverlayContainer_ = static_cast<Ogre::OverlayContainer*>(ovMan->createOverlayElement("Panel", "InGameConsoleContainer")); 122 120 this->consoleOverlayContainer_->setMetricsMode(Ogre::GMM_RELATIVE); 123 121 this->consoleOverlayContainer_->setPosition((1 - this->relativeWidth) / 2, 0); … … 126 124 127 125 // create BorderPanel 128 this->consoleOverlayBorder_ = static_cast< BorderPanelOverlayElement*>(ovMan->createOverlayElement("BorderPanel", "InGameConsoleBorderPanel"));126 this->consoleOverlayBorder_ = static_cast<Ogre::BorderPanelOverlayElement*>(ovMan->createOverlayElement("BorderPanel", "InGameConsoleBorderPanel")); 129 127 this->consoleOverlayBorder_->setMetricsMode(Ogre::GMM_PIXELS); 130 128 this->consoleOverlayBorder_->setMaterialName("ConsoleCenter"); … … 139 137 140 138 // create the text lines 141 this->consoleOverlayTextAreas_ = new TextAreaOverlayElement*[LINES];139 this->consoleOverlayTextAreas_ = new Ogre::TextAreaOverlayElement*[LINES]; 142 140 for (int i = 0; i < LINES; i++) 143 141 { 144 this->consoleOverlayTextAreas_[i] = static_cast< TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleTextArea" + Ogre::StringConverter::toString(i)));142 this->consoleOverlayTextAreas_[i] = static_cast<Ogre::TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleTextArea" + Ogre::StringConverter::toString(i))); 145 143 this->consoleOverlayTextAreas_[i]->setMetricsMode(Ogre::GMM_PIXELS); 146 144 this->consoleOverlayTextAreas_[i]->setFontName("Monofur"); … … 153 151 154 152 // create cursor (also a text area overlay element) 155 this->consoleOverlayCursor_ = static_cast< TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleCursor"));153 this->consoleOverlayCursor_ = static_cast<Ogre::TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleCursor")); 156 154 this->consoleOverlayCursor_->setMetricsMode(Ogre::GMM_PIXELS); 157 155 this->consoleOverlayCursor_->setFontName("Monofur"); … … 163 161 164 162 // create noise 165 this->consoleOverlayNoise_ = static_cast< PanelOverlayElement*>(ovMan->createOverlayElement("Panel", "InGameConsoleNoise"));163 this->consoleOverlayNoise_ = static_cast<Ogre::PanelOverlayElement*>(ovMan->createOverlayElement("Panel", "InGameConsoleNoise")); 166 164 this->consoleOverlayNoise_->setMetricsMode(Ogre::GMM_PIXELS); 167 165 this->consoleOverlayNoise_->setPosition(5,0);
Note: See TracChangeset
for help on using the changeset viewer.