Complete GUI reload (including resources from disk)

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

User avatar
d-Pixie
Just popping in
Just popping in
Posts: 11
Joined: Mon Oct 18, 2010 16:19
Location: Uppsala, Sweden
Contact:

Complete GUI reload (including resources from disk)

Postby d-Pixie » Sun Oct 24, 2010 13:26

Hi all.

I have a question that I have not been able to find the answer to on/in the forums/tutorials. I'd like to be able to do a complete GUI reload from within the GUI. This might seem strange but I have all of my GUI code in Lua/XML and for prototyping the GUI it would be awesome to be able to press Ctrl+r to reload the GUI from disk (as you can in WoW for example, when developing addons).

I can think of one way to do this, completely unload the GUI rendering subsystem and then bring it up again, but that is a pretty long road to take ;o) Is there any quicker way to get it done? I have seen the invalidateAllCachedRendering() call but I can't see from the doc if this just invalidates all the resources for the layout and reuses the loaded images and such to redraw or if it does a deep reload of the GUI from disk (I figured the first since it is not really made for the purpose I need it for). Anyway I figured that you might get away with first reloading the resources from disk manually and then calling that function to get a complete redraw with the refreshed resources.

What do you all think?

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Complete GUI reload (including resources from disk)

Postby Kulik » Sun Oct 24, 2010 13:55

Depends on what you want to reload/refresh. Just the layout? Or even looknfeel? Imagesets? Layout is easy, looknfeel is really hard, imagesets are probably easy.

Falagard will receive some major changes to allow it to be modified at runtime to support CESkinEditor.

User avatar
d-Pixie
Just popping in
Just popping in
Posts: 11
Joined: Mon Oct 18, 2010 16:19
Location: Uppsala, Sweden
Contact:

Re: Complete GUI reload (including resources from disk)

Postby d-Pixie » Sun Oct 24, 2010 14:04

Basically I want to be able to modify any resource belonging to the GUI, imagesets, looknfeel, fonts, schema, the lot. I infer from your comment that my intuition about having to basically destroy the GUI system and reload it all is correct? ;o)


Return to “Help”

Who is online

Users browsing this forum: Google [Bot] and 10 guests