[Orxonox-commit 1411] r6129 - code/branches/presentation2/src/orxonox/overlays
rgrieder at orxonox.net
rgrieder at orxonox.net
Mon Nov 23 21:49:41 CET 2009
Author: rgrieder
Date: 2009-11-23 21:49:40 +0100 (Mon, 23 Nov 2009)
New Revision: 6129
Modified:
code/branches/presentation2/src/orxonox/overlays/InGameConsole.cc
Log:
Hopefully fixed in game console text visibility issue (again).
Modified: code/branches/presentation2/src/orxonox/overlays/InGameConsole.cc
===================================================================
--- code/branches/presentation2/src/orxonox/overlays/InGameConsole.cc 2009-11-23 20:31:37 UTC (rev 6128)
+++ code/branches/presentation2/src/orxonox/overlays/InGameConsole.cc 2009-11-23 20:49:40 UTC (rev 6129)
@@ -217,6 +217,14 @@
font->addCodePointRange(Ogre::Font::CodePointRange(33, 126));
font->addCodePointRange(Ogre::Font::CodePointRange(161, 255));
+ // create noise
+ this->consoleOverlayNoise_ = static_cast<Ogre::PanelOverlayElement*>(ovMan->createOverlayElement("Panel", "InGameConsoleNoise"));
+ this->consoleOverlayNoise_->setMetricsMode(Ogre::GMM_PIXELS);
+ this->consoleOverlayNoise_->setPosition(5,0);
+ this->consoleOverlayNoise_->setMaterialName("ConsoleNoiseSmall");
+ // comment following line to disable noise
+ this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_);
+
// create the text lines
this->consoleOverlayTextAreas_ = new Ogre::TextAreaOverlayElement*[LINES];
for (int i = 0; i < LINES; i++)
@@ -228,7 +236,7 @@
this->consoleOverlayTextAreas_[i]->setParameter("colour_top", "0.21 0.69 0.21");
this->consoleOverlayTextAreas_[i]->setLeft(8);
this->consoleOverlayTextAreas_[i]->setCaption("");
- this->consoleOverlayBorder_->addChild(this->consoleOverlayTextAreas_[i]);
+ this->consoleOverlayNoise_->addChild(this->consoleOverlayTextAreas_[i]);
}
// create cursor (also a text area overlay element)
@@ -239,16 +247,8 @@
this->consoleOverlayCursor_->setParameter("colour_top", "0.21 0.69 0.21");
this->consoleOverlayCursor_->setLeft(7);
this->consoleOverlayCursor_->setCaption(std::string(this->cursorSymbol_, 1));
- this->consoleOverlayContainer_->addChild(this->consoleOverlayCursor_);
+ this->consoleOverlayNoise_->addChild(this->consoleOverlayCursor_);
- // create noise
- this->consoleOverlayNoise_ = static_cast<Ogre::PanelOverlayElement*>(ovMan->createOverlayElement("Panel", "InGameConsoleNoise"));
- this->consoleOverlayNoise_->setMetricsMode(Ogre::GMM_PIXELS);
- this->consoleOverlayNoise_->setPosition(5,0);
- this->consoleOverlayNoise_->setMaterialName("ConsoleNoiseSmall");
- // comment following line to disable noise
- this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_);
-
this->windowResized(this->getWindowWidth(), this->getWindowWidth());
// move overlay "above" the top edge of the screen
More information about the Orxonox-commit
mailing list