Page 1 of 1

Changing Main Sheets

Posted: Sun Mar 19, 2006 01:33
by Scorch
My current implemenation calls destroy all windows then calls load layout every time I want to switch which menu i'm looking at.

I am curious, is this the intended way CEGUI should be used?
or should I preload all my menus and then just call setGUISheet() to switch back and forth?

Pro's Cons? can's? cant's?

Posted: Tue Mar 21, 2006 13:53
by martignasse
hi Scorch,

i recommand you the preload way, it's better than reconstructing always the same things.

I am curious, is this the intended way CEGUI should be used?
there isn't an intended way, it's all depend of what you try to do.

Hope it help.

Posted: Sun Mar 26, 2006 21:17
by Scorch
Ok, I gave preloading a try.
Gave me some trouble with the names, had to rename all of my objects to prevent name clash.

But now the menus react much faster.

Thanks!

Now i'm having trouble with IsVisible, but i'm going to create a new post for that issue

Thanks.