Changeset 2685 for code/branches/buildsystem3/src/orxonox/gui/GUIManager.cc
- Timestamp:
- Feb 20, 2009, 5:32:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/src/orxonox/gui/GUIManager.cc
r2664 r2685 36 36 #include "GUIManager.h" 37 37 38 #include <boost/filesystem.hpp> 38 39 #include <OgreRenderWindow.h> 39 40 #include <OgreRoot.h> 40 41 #include <CEGUI.h> 42 #include <CEGUIDefaultLogger.h> 41 43 #include <ogreceguirenderer/OgreCEGUIRenderer.h> 42 44 #ifdef CEGUILUA_USE_INTERNAL_LIBRARY … … 148 150 this->luaState_ = this->scriptModule_->getLuaState(); 149 151 152 // Create our own logger to specify the filepath 153 boost::filesystem::path ceguiLogFilepath(Core::getLogPath() + "cegui.log"); 154 this->ceguiLogger_ = new DefaultLogger(); 155 this->ceguiLogger_->setLogFilename(ceguiLogFilepath.native_file_string()); 156 // set the log level according to ours (translate by subtracting 1) 157 this->ceguiLogger_->setLoggingLevel( 158 (LoggingLevel)(Core::getSoftDebugLevel(OutputHandler::LD_Logfile) - 1)); 159 150 160 // create the CEGUI system singleton 151 161 this->guiSystem_ = new System(this->guiRenderer_, this->resourceProvider_, 0, this->scriptModule_); 152 153 // set the log level according to ours (translate by subtracting 1)154 Logger::getSingleton().setLoggingLevel(155 (LoggingLevel)(Core::getSoftDebugLevel(OutputHandler::LD_Logfile) - 1));156 162 157 163 // do this after 'new CEGUI::Sytem' because that creates the lua state in the first place
Note: See TracChangeset
for help on using the changeset viewer.