So da bin ich mal wieder,
hab nun einige Zeit weiter gearbeitet und dann vorhin mal in den Log geschaut und merkt das CEGUI mir einige Fehler auswirft. Dazu muss ich auch noch sagen das seltsamer weise die "Fenster" im Spiel korrekt angezeigt werden.
CEGUI.log
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
|
13/10/2009 18:51:15 (Std) Creating falagard mapping for type 'SleekSpace/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' and Look'N'Feel 'SleekSpace/StaticText'. (0020D630)
13/10/2009 18:51:15 (Error) CEGUI::UnknownObjectException in file ..\..\..\src\CEGUIImagesetManager.cpp(193) : ImagesetManager::getImageset - No Imageset named 'sleekspace' is present in the system.
13/10/2009 18:51:15 (Error) CEGUI::UnknownObjectException in file ..\..\..\src\CEGUIPropertySet.cpp(124) : There is no Property named 'CaptionColour' available in the set.
13/10/2009 18:51:15 (Error) CEGUI::UnknownObjectException in file ..\..\..\src\CEGUIPropertySet.cpp(124) : There is no Property named 'UseStandardImagery' available in the set.
13/10/2009 18:51:15 (Error) CEGUI::UnknownObjectException in file ..\..\..\src\CEGUIPropertySet.cpp(124) : There is no Property named 'NormalImage' available in the set.
13/10/2009 18:51:15 (Error) CEGUI::UnknownObjectException in file ..\..\..\src\CEGUIPropertySet.cpp(124) : There is no Property named 'HoverImage' available in the set.
13/10/2009 18:51:15 (Error) CEGUI::UnknownObjectException in file ..\..\..\src\CEGUIPropertySet.cpp(124) : There is no Property named 'PushedImage' available in the set.
13/10/2009 18:51:15 (Error) CEGUI::UnknownObjectException in file ..\..\..\src\CEGUIPropertySet.cpp(109) : There is no Property named 'NormalTextColour' available in the set.
|
Meine eigene Log
|
C-/C++-Quelltext
|
1
2
3
|
..\..\..\src\CEGUIImagesetManager.cpp
CEGUI::UnknownObjectException
ImagesetManager::getImageset - No Imageset named 'sleekspace' is present in the system.
|
Der Bereich in dem die Exception geworfen wird.
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
int cGame::InitializeCEGUI()
{
std::ofstream Log;
Log.open("Log.txt",std::ios::out);
try
{
CeGuiRenderer = new CEGUI::OpenGLRenderer(0,WindowWidth,WindowHeight);
CeGuiSystem = new CEGUI::System(CeGuiRenderer);
CEGUI::Imageset::setDefaultResourceGroup("imagesets");
CEGUI::Font::setDefaultResourceGroup("fonts");
CEGUI::Scheme::setDefaultResourceGroup("schemes");
CEGUI::WidgetLookManager::setDefaultResourceGroup("looknfeel");
CEGUI::WindowManager::setDefaultResourceGroup("layouts");
CEGUI::ScriptModule::setDefaultResourceGroup("lua_scripts");
CeGuiResourceProvider = static_cast<CEGUI::DefaultResourceProvider*>(CeGuiSystem->getResourceProvider());
CeGuiResourceProvider->setResourceGroupDirectory ( "imagesets" , "Data\\" ) ;
CeGuiResourceProvider->setResourceGroupDirectory ( "fonts" , "Data\\" ) ;
CeGuiResourceProvider->setResourceGroupDirectory ( "schemes" , "Data\\" ) ;
CeGuiResourceProvider->setResourceGroupDirectory ( "looknfeel" , "Data\\" ) ;
CeGuiResourceProvider->setResourceGroupDirectory ( "layouts" , "Data\\" ) ;
try
{
CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*) "SleekSpace.scheme");
CeGuiSystem->setDefaultMouseCursor((CEGUI::utf8*)"sleekspace",(CEGUI::utf8*)"MouseArrow") ;
CEGUI::MouseCursor::getSingleton().setImage("sleekspace", "MouseArrow");
}
catch ( CEGUI::Exception &MyException )
{
Log << MyException.getFileName() << std::endl << MyException.getName() << std::endl << MyException.getMessage();
}
//RootGuiWindow = CEGUI::WindowManager::getSingleton().createWindow("DefaultWindow", "root" );
//CeGuiSystem->getSingleton().setGUISheet(RootGuiWindow);
//MainMenuFrame = (CEGUI::FrameWindow*)CEGUI::WindowManager::getSingleton().createWindow( "SleekSpace/FrameWindow", "MainWindow" );
//MainMenuFrame->setPosition ( CEGUI::UVector2( CEGUI::UDim(0.25f,0), CEGUI::UDim(0.01f,0) ) );
//MainMenuFrame->setSize ( CEGUI::UVector2( CEGUI::UDim( 0.5f, 0 ), CEGUI::UDim( 0.28f, 0 ) ) );
//MainMenuFrame->setText ("MainMenuFrame");
}
catch ( CEGUI::Exception &MyException )
{
Log << MyException.getFileName() << std::endl << MyException.getName() << std::endl << MyException.getMessage();
}
Log.close();
return 0;
}
|
Hoffe mir kann jemand helfen
gruß michi