Changeset 2685 for code/branches/buildsystem3/src/orxonox/gui
- Timestamp:
- Feb 20, 2009, 5:32:04 PM (16 years ago)
- Location:
- code/branches/buildsystem3/src/orxonox/gui
- Files:
-
- 2 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 -
code/branches/buildsystem3/src/orxonox/gui/GUIManager.h
r2664 r2685 41 41 #include <CEGUISystem.h> 42 42 #include "core/input/InputInterfaces.h" 43 44 // Forward declaration 45 namespace CEGUI { class DefaultLogger; } 43 46 44 47 // tolua_begin … … 119 122 CEGUI::ResourceProvider* resourceProvider_; 120 123 CEGUI::LuaScriptModule* scriptModule_; 124 CEGUI::DefaultLogger* ceguiLogger_; 121 125 CEGUI::System* guiSystem_; 122 126 CEGUI::Imageset* backgroundImage_;
Note: See TracChangeset
for help on using the changeset viewer.