Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: eborr on March 23, 2012, 12:51:57 PM

Title: Persitence in Windows
Post by: eborr on March 23, 2012, 12:51:57 PM
Quick question, if I change a value - say the sprite image in a window control, unload the window, and subsequently reload the window, does the image revert to the orginal, or will the changed image persist in the same way that if I change an image in a scene node it will persist
Title: Re: Persitence in Windows
Post by: Mnemonic on March 23, 2012, 05:37:12 PM
Windows don't remember their state when unloaded/reloaded. This is typically not needed (or desirable) so if you need such behavior, you'll need to implement it yourself.
Title: Re: Persitence in Windows
Post by: eborr on March 24, 2012, 10:39:27 AM
I need to remember the state of certain window controls, I have managed it through the visible non visible options which seems to work ok, I guess the other way of doing it is to store the state values in a series of globals that are checked each time the window is loaded.