GuiRolloutCtrl does not save.
by Neo Binedell · in Torque Game Builder · 01/10/2007 (7:22 am) · 2 replies
Hmm, was refactoring the iso editor to use rollouts and it they would not save. Seems mCanSave is being set to false in the GuiRolloutCtrl constructor and therefore does not save once you've added them to containers in the GUI editor.
Is there any reason for this?
Anyway setting mCanSave = true solves the issue.
Is there any reason for this?
Anyway setting mCanSave = true solves the issue.
#2
Anyway its rather a small little thing but I kept forgetting to set canSave to true in the editor when adding new rollouts and some DOH moments, heh.
Anyway point taken, thanks again.
01/11/2007 (1:42 am)
Thanks for the info, although wouldn't it be more intuitive to set all the contained dynamic controls to not save or create another container control that does nothing but NOT save its children ;pAnyway its rather a small little thing but I kept forgetting to set canSave to true in the editor when adding new rollouts and some DOH moments, heh.
Anyway point taken, thanks again.
Associate Justin DuJardin
Default Studio Name
This was actually intended operation because during development of the Rollout it was only intended to house completely dynamic, instance type content. Because of this we didn't want all these dynamically created controls to be serialized with a GUI only to be duplicated the next time you opened it.
Setting mCanSave was a convenience for designing with rollouts in a gui that had dynamic content on them. Removing it shouldn't hurt anything for your purposes, but that's a bit of background on why it is how it is.
Cheers,
-Justin