Page 1 of 1

Problem with multiple ImageSets

Posted: Fri May 20, 2005 21:25
by jed
I'm having trouble loading imagesets. It seems like you can only have one loaded at a time.

If I go:
// load the UI imageset
CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLook.scheme");
mGUISystem->setDefaultMouseCursor((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow");
mGUISystem->setDefaultFont((CEGUI::utf8*)"Tahoma-12");

// load my imageset
CEGUI::ImagesetManager imagesetManager=CEGUI::ImagesetManager::getSingleton();
imagesetManager.createImageset("mainscreen.imageset");

CEGUI::Window* sheet = CEGUI::WindowManager::getSingleton().loadWindowLayout("mainscreen.layout");
mGUISystem->setGUISheet(sheet);

I don't see the mouse.

But if I go:

// load my imageset
CEGUI::ImagesetManager imagesetManager=CEGUI::ImagesetManager::getSingleton();
imagesetManager.createImageset("mainscreen.imageset");

// load the UI imageset CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLook.scheme");
mGUISystem->setDefaultMouseCursor((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow");
mGUISystem->setDefaultFont((CEGUI::utf8*)"Tahoma-12");


CEGUI::Window* sheet = CEGUI::WindowManager::getSingleton().loadWindowLayout("mainscreen.layout");
mGUISystem->setGUISheet(sheet);

I get UI images instead of my images in my layout?
What is the correct way to work with multiple imagesets?

Re: Problem with multiple ImageSets

Posted: Thu May 26, 2005 14:37
by boto
there is no problem with having multiple imagesets. make sure that you defined your own image file in your imageset file and that you use your own elements in your scheme, not those of TaharezLook!

cheers
boto