[Problem] Rendering more than one layout using singleton

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

pentium166
Just popping in
Just popping in
Posts: 7
Joined: Sun Sep 16, 2012 00:29

[Problem] Rendering more than one layout using singleton

Postby pentium166 » Thu Feb 28, 2013 14:27

Well...I don't know how to explain it in a more precise way (sorry, english isn't my first language) so I've sent a picture of it:
Image

As you can see, it's like it's rendering more than one layout at same time! I have the lobby GUI...when I click start...I suppouse to change the gui sheet of the singleton to show my loading layout, here is the piece of code I'm using to do it:

Code: Select all

if(ListGUI[enGAMEGUI::LOADING].win)
{
CEGUI::System::getSingleton().setGUISheet(ListGUI[enGAMEGUI::LOADING].win);
}


here is the code I use to obtain the ListGUI for the enGAMEGUI::LOADING:

Code: Select all

CEGUI::Window* layroot = CURRENTGUI->loadWindowLayout("GUI\\Loading.layout","","Transparent");
if(layroot)
{
//here I got other components of the layout
...
...
ListGUI[enGAMEGUI::LOADING].win=layroot;
}




and as you can see in the picture, the same happens with the in-game GUI...the lobby still there...and also the loading still there too...it's like they're stacking in the render...
but the odd thing is...there is another two GUI's (start gui and options gui) which that doesn't happens...

So...that's it I think...can someone give me a light for this problem?

Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 9 guests