Changing Main Sheets

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Scorch
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Mon Feb 13, 2006 07:05
Location: Las Vegas, NV

Changing Main Sheets

Postby Scorch » Sun Mar 19, 2006 01:33

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?

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Postby martignasse » Tue Mar 21, 2006 13:53

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.

Scorch
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Mon Feb 13, 2006 07:05
Location: Las Vegas, NV

Postby Scorch » Sun Mar 26, 2006 21:17

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.


Return to “Help”

Who is online

Users browsing this forum: Baidu [Spider] and 10 guests