Changeset 8795 for code/branches/output/src/orxonox
- Timestamp:
- Jul 29, 2011, 10:26:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/orxonox/overlays/InGameConsole.cc
r8729 r8795 46 46 #include "util/DisplayStringConversions.h" 47 47 #include "util/ScopedSingletonManager.h" 48 #include "util/output/MemoryWriter.h" 48 49 #include "core/CoreIncludes.h" 49 50 #include "core/ConfigValueIncludes.h" … … 94 95 // Output buffering is not anymore needed. Not the best solution to do 95 96 // this here, but there isn't much of another way. 96 OutputHandler::getInstance().disableMemoryLog();97 MemoryWriter::getInstance().disable(); 97 98 } 98 99 … … 288 289 289 290 for (int i = LINES - 1; i > max; --i) 290 this->print("", Shell:: None, i, true);291 this->print("", Shell::DebugOutput, i, true); 291 292 292 293 for (int i = max; i >= 1; --i) … … 566 567 switch (type) 567 568 { 568 case Shell::Error: colourTop = ColourValue(0.95f, 0.25f, 0.25f, 1.00f); 569 colourBottom = ColourValue(1.00f, 0.50f, 0.50f, 1.00f); break; 570 571 case Shell::Warning: colourTop = ColourValue(0.95f, 0.50f, 0.20f, 1.00f); 572 colourBottom = ColourValue(1.00f, 0.70f, 0.50f, 1.00f); break; 573 574 case Shell::Info: colourTop = ColourValue(0.50f, 0.50f, 0.95f, 1.00f); 575 colourBottom = ColourValue(0.80f, 0.80f, 1.00f, 1.00f); break; 576 577 case Shell::Debug: colourTop = ColourValue(0.65f, 0.48f, 0.44f, 1.00f); 578 colourBottom = ColourValue(1.00f, 0.90f, 0.90f, 1.00f); break; 579 580 case Shell::Verbose: colourTop = ColourValue(0.40f, 0.20f, 0.40f, 1.00f); 581 colourBottom = ColourValue(0.80f, 0.60f, 0.80f, 1.00f); break; 582 583 case Shell::Ultra: colourTop = ColourValue(0.21f, 0.69f, 0.21f, 1.00f); 584 colourBottom = ColourValue(0.80f, 1.00f, 0.80f, 1.00f); break; 585 586 case Shell::Command: colourTop = ColourValue(0.80f, 0.80f, 0.80f, 1.00f); 587 colourBottom = ColourValue(0.90f, 0.90f, 0.90f, 0.90f); break; 588 589 case Shell::Hint: colourTop = ColourValue(0.80f, 0.80f, 0.80f, 1.00f); 590 colourBottom = ColourValue(0.90f, 0.90f, 0.90f, 1.00f); break; 591 592 case Shell::TDebug: colourTop = ColourValue(0.90f, 0.00f, 0.90f, 1.00f); 593 colourBottom = ColourValue(1.00f, 0.00f, 1.00f, 1.00f); break; 594 595 default: colourTop = ColourValue(0.90f, 0.90f, 0.90f, 1.00f); 596 colourBottom = ColourValue(1.00f, 1.00f, 1.00f, 1.00f); break; 597 } 569 case Shell::DebugOutput: colourTop = ColourValue(0.9f, 0.9f, 0.9f); break; 570 571 case Shell::UserError: colourTop = ColourValue(0.9f, 0.2f, 0.2f); break; 572 case Shell::UserWarning: colourTop = ColourValue(0.9f, 0.5f, 0.2f); break; 573 case Shell::UserStatus: colourTop = ColourValue(0.2f, 0.9f, 0.2f); break; 574 case Shell::UserInfo: colourTop = ColourValue(0.2f, 0.8f, 0.8f); break; 575 576 case Shell::InternalError: colourTop = ColourValue(0.5f, 0.0f, 0.0f); break; 577 case Shell::InternalWarning: colourTop = ColourValue(0.5f, 0.2f, 0.0f); break; 578 case Shell::InternalStatus: colourTop = ColourValue(0.0f, 0.5f, 0.0f); break; 579 case Shell::InternalInfo: colourTop = ColourValue(0.0f, 0.4f, 0.4f); break; 580 581 case Shell::Verbose: colourTop = ColourValue(0.2f, 0.2f, 0.9f); break; 582 case Shell::VerboseMore: colourTop = ColourValue(0.1f, 0.1f, 0.6f); break; 583 case Shell::VerboseUltra: colourTop = ColourValue(0.0f, 0.0f, 0.4f); break; 584 585 case Shell::Command: colourTop = ColourValue(0.8f, 0.2f, 0.8f); break; 586 case Shell::Hint: colourTop = ColourValue(0.4f, 0.0f, 0.4f); break; 587 case Shell::Input: colourTop = ColourValue(0.9f, 0.9f, 0.9f); break; 588 589 default: colourTop = ColourValue(0.5f, 0.5f, 0.5f); break; 590 } 591 592 colourBottom = ColourValue(sqrt(colourTop.r), sqrt(colourTop.g), sqrt(colourTop.b)); 598 593 599 594 this->consoleOverlayTextAreas_[index]->setColourTop (colourTop);
Note: See TracChangeset
for help on using the changeset viewer.