Changeset 1338 for code/branches
- Timestamp:
- May 20, 2008, 10:56:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/orxonox/console/InGameConsole.cc
r1334 r1338 192 192 193 193 // create a container 194 this->consoleOverlayContainer_ = static_cast<OverlayContainer*>(this->om_->createOverlayElement("Panel", " container"));194 this->consoleOverlayContainer_ = static_cast<OverlayContainer*>(this->om_->createOverlayElement("Panel", "InGameConsoleContainer")); 195 195 this->consoleOverlayContainer_->setMetricsMode(Ogre::GMM_RELATIVE); 196 196 this->consoleOverlayContainer_->setPosition((1 - InGameConsole::REL_WIDTH) / 2, 0); … … 198 198 199 199 // create BorderPanel 200 this->consoleOverlayBorder_ = static_cast<BorderPanelOverlayElement*>(this->om_->createOverlayElement("BorderPanel", " borderPanel"));200 this->consoleOverlayBorder_ = static_cast<BorderPanelOverlayElement*>(this->om_->createOverlayElement("BorderPanel", "InGameConsoleBorderPanel")); 201 201 this->consoleOverlayBorder_->setMetricsMode(Ogre::GMM_PIXELS); 202 202 this->consoleOverlayBorder_->setMaterialName("ConsoleCenter"); … … 214 214 for (int i = 0; i < LINES; i++) 215 215 { 216 this->consoleOverlayTextAreas_[i] = static_cast<TextAreaOverlayElement*>(this->om_->createOverlayElement("TextArea", " textArea" + Ogre::StringConverter::toString(i)));216 this->consoleOverlayTextAreas_[i] = static_cast<TextAreaOverlayElement*>(this->om_->createOverlayElement("TextArea", "InGameConsoleTextArea" + Ogre::StringConverter::toString(i))); 217 217 this->consoleOverlayTextAreas_[i]->setMetricsMode(Ogre::GMM_PIXELS); 218 218 this->consoleOverlayTextAreas_[i]->setFontName("Console"); … … 224 224 225 225 // create noise 226 this->consoleOverlayNoise_ = static_cast<PanelOverlayElement*>(this->om_->createOverlayElement("Panel", " noise"));226 this->consoleOverlayNoise_ = static_cast<PanelOverlayElement*>(this->om_->createOverlayElement("Panel", "InGameConsoleNoise")); 227 227 this->consoleOverlayNoise_->setMetricsMode(Ogre::GMM_PIXELS); 228 228 this->consoleOverlayNoise_->setPosition(5,0); 229 229 this->consoleOverlayNoise_->setMaterialName("ConsoleNoise"); 230 230 231 this->consoleOverlay_ = this->om_->create(" Console");231 this->consoleOverlay_ = this->om_->create("InGameConsoleConsole"); 232 232 this->consoleOverlay_->add2D(this->consoleOverlayContainer_); 233 233 this->consoleOverlayContainer_->addChild(this->consoleOverlayBorder_); … … 245 245 this->consoleOverlay_->show(); 246 246 247 COUT( 3) << "Info: InGameConsole initialized" << std::endl;247 COUT(4) << "Info: InGameConsole initialized" << std::endl; 248 248 } 249 249 … … 395 395 else if (level == 3) 396 396 { 397 this->consoleOverlayTextAreas_[index]->setColourTop (ColourValue(0. 25, 0.25, 0.75, 1.00));397 this->consoleOverlayTextAreas_[index]->setColourTop (ColourValue(0.50, 0.50, 0.95, 1.00)); 398 398 this->consoleOverlayTextAreas_[index]->setColourBottom(ColourValue(0.80, 0.80, 1.00, 1.00)); 399 399 }
Note: See TracChangeset
for help on using the changeset viewer.