ofxUI saving widgets with text information

Hi OFers !

I’m continuing to work with @reza amazing ofxUI addon …
At this point i’m facing a problem when saving settings from a ofxUICanvas …

I have some ofxUILabels added to a ofxUICanvas that are filled in my app with user input and i would like to save this data within the canvas SaveSettings function … BUT … SaveSettings is just saving the widgets which have “state”. Seems like ofxLabel has “noState” so it can’t be saved and then loaded again to recover the text i got into the label …

Is there a way arround this so that i can save and load settings of elements inside a canvas that have text ? or I should try to implement a new SaveSettings and LoadSettings that include the widgets that don’t have “state” ?

Hope my question in understandable …
Thanks a lot for any trick arround this issue …

@eloi I think the best way of accomplishing this would be to subclass ofxUILabel and override the following virtual methods:

bool hasState() { true }; 
void saveState(ofxXmlSettings *XML) { ... } 
void loadState(ofxXmlSettings *XML) { ... }