Problem with multiple ImageSets

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
jed
Just popping in
Just popping in
Posts: 14
Joined: Fri May 20, 2005 14:51

Problem with multiple ImageSets

Postby jed » Fri May 20, 2005 21:25

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?

User avatar
boto
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Tue May 24, 2005 12:28

Re: Problem with multiple ImageSets

Postby boto » Thu May 26, 2005 14:37

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


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests