Changeset 6129 for code/branches/presentation2/src/orxonox
- Timestamp:
- Nov 23, 2009, 9:49:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/overlays/InGameConsole.cc
r6128 r6129 218 218 font->addCodePointRange(Ogre::Font::CodePointRange(161, 255)); 219 219 220 // create noise 221 this->consoleOverlayNoise_ = static_cast<Ogre::PanelOverlayElement*>(ovMan->createOverlayElement("Panel", "InGameConsoleNoise")); 222 this->consoleOverlayNoise_->setMetricsMode(Ogre::GMM_PIXELS); 223 this->consoleOverlayNoise_->setPosition(5,0); 224 this->consoleOverlayNoise_->setMaterialName("ConsoleNoiseSmall"); 225 // comment following line to disable noise 226 this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_); 227 220 228 // create the text lines 221 229 this->consoleOverlayTextAreas_ = new Ogre::TextAreaOverlayElement*[LINES]; … … 229 237 this->consoleOverlayTextAreas_[i]->setLeft(8); 230 238 this->consoleOverlayTextAreas_[i]->setCaption(""); 231 this->consoleOverlay Border_->addChild(this->consoleOverlayTextAreas_[i]);239 this->consoleOverlayNoise_->addChild(this->consoleOverlayTextAreas_[i]); 232 240 } 233 241 … … 240 248 this->consoleOverlayCursor_->setLeft(7); 241 249 this->consoleOverlayCursor_->setCaption(std::string(this->cursorSymbol_, 1)); 242 this->consoleOverlayContainer_->addChild(this->consoleOverlayCursor_); 243 244 // create noise 245 this->consoleOverlayNoise_ = static_cast<Ogre::PanelOverlayElement*>(ovMan->createOverlayElement("Panel", "InGameConsoleNoise")); 246 this->consoleOverlayNoise_->setMetricsMode(Ogre::GMM_PIXELS); 247 this->consoleOverlayNoise_->setPosition(5,0); 248 this->consoleOverlayNoise_->setMaterialName("ConsoleNoiseSmall"); 249 // comment following line to disable noise 250 this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_); 250 this->consoleOverlayNoise_->addChild(this->consoleOverlayCursor_); 251 251 252 252 this->windowResized(this->getWindowWidth(), this->getWindowWidth());
Note: See TracChangeset
for help on using the changeset viewer.