[Orxonox-commit 2032] r6749 - code/trunk/src/libraries/core
rgrieder at orxonox.net
rgrieder at orxonox.net
Fri Apr 16 20:13:36 CEST 2010
Author: rgrieder
Date: 2010-04-16 20:13:36 +0200 (Fri, 16 Apr 2010)
New Revision: 6749
Modified:
code/trunk/src/libraries/core/GUIManager.cc
code/trunk/src/libraries/core/GUIManager.h
Log:
Background wasn't transparent upon start up --> black screen when starting with "--standalone"
Modified: code/trunk/src/libraries/core/GUIManager.cc
===================================================================
--- code/trunk/src/libraries/core/GUIManager.cc 2010-04-16 18:09:17 UTC (rev 6748)
+++ code/trunk/src/libraries/core/GUIManager.cc 2010-04-16 18:13:36 UTC (rev 6749)
@@ -126,7 +126,7 @@
resourceProvider_ = guiRenderer_->createResourceProvider();
resourceProvider_->setDefaultResourceGroup("GUI");
- // setup scripting
+ // Setup scripting
luaState_.reset(new LuaState());
rootFileInfo_ = Resource::getInfo("InitialiseGUI.lua");
// This is necessary to ensure that input events also use the right resource info when triggering lua functions
@@ -141,7 +141,7 @@
static_cast<LoggingLevel>(OutputHandler::getInstance().getSoftDebugLevel("logFile") - 1));
this->ceguiLogger_ = ceguiLogger.release();
- // create the CEGUI system singleton
+ // Create the CEGUI system singleton
guiSystem_.reset(new System(guiRenderer_.get(), resourceProvider_, 0, scriptModule_.get()));
// Align CEGUI mouse with OIS mouse
@@ -160,6 +160,9 @@
this->rootWindow_->addChildWindow(this->hudRootWindow_);
this->rootWindow_->addChildWindow(this->menuRootWindow_);
+ // No background to start with (sets the alpha value to 0)
+ this->setBackgroundImage("");
+
// Set up the sheet manager in the Lua framework
this->luaState_->doFile("SheetManager.lua");
}
Modified: code/trunk/src/libraries/core/GUIManager.h
===================================================================
--- code/trunk/src/libraries/core/GUIManager.h 2010-04-16 18:09:17 UTC (rev 6748)
+++ code/trunk/src/libraries/core/GUIManager.h 2010-04-16 18:13:36 UTC (rev 6749)
@@ -106,7 +106,6 @@
GUIManager(const GUIManager& instance); //!< private and undefined copy c'tor (this is a singleton class)
void executeCode(const std::string& str);
-
template <typename FunctionType>
bool protectedCall(FunctionType function);
@@ -119,6 +118,7 @@
void buttonReleased(MouseButtonCode::ByEnum id);
void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize);
void mouseScrolled (int abs, int rel);
+
scoped_ptr<CEGUI::OgreCEGUIRenderer> guiRenderer_; //!< CEGUI's interface to the Ogre Engine
scoped_ptr<LuaState> luaState_; //!< LuaState, access point to the Lua engine
scoped_ptr<CEGUI::LuaScriptModule> scriptModule_; //!< CEGUI's script module to use Lua
More information about the Orxonox-commit
mailing list