Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 28, 2009, 7:46:37 PM (15 years ago)
Author:
rgrieder
Message:

Merged buildsystem3 containing buildsystem2 containing Adi's buildsystem branch back to the trunk.
Please update the media directory if you were not using buildsystem3 before.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/gui/GUIManager.cc

    r2662 r2710  
    3636#include "GUIManager.h"
    3737
     38#include <boost/filesystem.hpp>
    3839#include <OgreRenderWindow.h>
    3940#include <OgreRoot.h>
    4041#include <CEGUI.h>
    41 #include "ceguilua/CEGUILua.h"
     42#include <CEGUIDefaultLogger.h>
     43#include <ogreceguirenderer/OgreCEGUIRenderer.h>
     44#include "SpecialConfig.h" // Configures the macro below
     45#ifdef CEGUILUA_USE_INTERNAL_LIBRARY
     46#   include <ceguilua/CEGUILua.h>
     47#else
     48#   include <CEGUILua.h>
     49#endif
     50
    4251#include "util/Exception.h"
    4352#include "core/input/InputManager.h"
    4453#include "core/input/SimpleInputState.h"
    45 #include "core/tolua/tolua_bind.h"
    4654#include "core/ConsoleCommand.h"
    4755#include "core/Core.h"
    48 #include "tolua/tolua_bind.h"
    49 #include "OgreCEGUIRenderer.h"
    50 
    51 #include "lua/lua.hpp"
     56#include "ToluaBindCore.h"
     57#include "ToluaBindOrxonox.h"
     58
     59extern "C" {
     60#include <lua.h>
     61}
    5262
    5363namespace orxonox
     
    100110                lua_pushnil(luaState_);
    101111                lua_setglobal(luaState_, "Core");
    102             // TODO: deleting the script module fails an assertation.
     112            // TODO: deleting the script module fails an assertion.
    103113            // However there is not much we can do about it since it occurs too when
    104114            // we don't open Core or Orxonox. Might be a CEGUI issue.
     
    141151                this->luaState_ = this->scriptModule_->getLuaState();
    142152
     153                // Create our own logger to specify the filepath
     154                boost::filesystem::path ceguiLogFilepath(Core::getLogPath() / "cegui.log");
     155                this->ceguiLogger_ = new DefaultLogger();
     156                this->ceguiLogger_->setLogFilename(ceguiLogFilepath.file_string());
     157                // set the log level according to ours (translate by subtracting 1)
     158                this->ceguiLogger_->setLoggingLevel(
     159                    (LoggingLevel)(Core::getSoftDebugLevel(OutputHandler::LD_Logfile) - 1));
     160
    143161                // create the CEGUI system singleton
    144162                this->guiSystem_ = new System(this->guiRenderer_, this->resourceProvider_, 0, this->scriptModule_);
    145 
    146                 // set the log level according to ours (translate by subtracting 1)
    147                 Logger::getSingleton().setLoggingLevel(
    148                     (LoggingLevel)(Core::getSoftDebugLevel(OutputHandler::LD_Logfile) - 1));
    149163
    150164                // 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.