Can't load a skin

Nekomaru

19-10-2010 12:28:22

Hello there. I try to create a window with MuGUI. There is a MyGUI code in my application :


using namespace MyGUI;
OgrePlatform *ogrePlatform = new OgrePlatform();
ogrePlatform->initialise(window, sManager);

Gui *gui = new Gui();
gui->initialise();

LayerManager::getInstance().load("core.xml");
SkinManager::getInstance().load("core_skin.xml");

Window *wnd = gui->createWidget<Window>("Window", 10, 10, 300, 26, Align::Default, "Main");


But get an runtime error and record in log:

17:55:51 | Core | Error | SkinManager : 'core_skin.xml', type 'Skin' not found | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 210


What should i do?

Altren

19-10-2010 13:02:46

Remove this two lines: LayerManager::getInstance().load("core.xml");
SkinManager::getInstance().load("core_skin.xml");
All resources are loaded when you call gui->initialise();

Nekomaru

19-10-2010 14:06:45

Altren, Thanks. It works now!