Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofParameter save special character #69

Closed
Wolftronics-SBC opened this issue Feb 28, 2018 · 7 comments
Closed

ofParameter save special character #69

Wolftronics-SBC opened this issue Feb 28, 2018 · 7 comments

Comments

@Wolftronics-SBC
Copy link

Wolftronics-SBC commented Feb 28, 2018

if ## is in the name not save to xml
ofParameter<int> min{ "##Min", 5000, 5000, 65535 }; // not save ## ? ofParameter<int> max{ "Max", 5000, 5000, 65535 }; ofParameterGroup parameters{ "Parameters", min, max };

ofXml xml;
ofSerialize(xml, parameters);
xml.save("settings.xml");
@jvcleave
Copy link
Owner

does the code work without ofxImGui? Sounds like an issue with ofXml or ofSerialize

@Wolftronics-SBC
Copy link
Author

code not work without ofxImGui.

@Wolftronics-SBC
Copy link
Author

not save min max value only position save

@Wolftronics-SBC
Copy link
Author

ofXml child = xml.findFirst(name); I think this is a problem.

@Wolftronics-SBC
Copy link
Author

` ofXml child = xml.findFirst(name);

if(!child || !name.find("##")){`

@Wolftronics-SBC
Copy link
Author

load config not work does not matter ##
ofXml xml;
xml.load("settings.xml");
ofDeserialize(xml, parameters);

@jvcleave
Copy link
Owner

closing since the code doesn’t work without ofxImGui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants