void keyPressed(int key) { if( key == 'h' ){ bHide = !bHide; } if(key == 's') { gui.saveToFile("settings.xml"); } if(key == 'l') { gui.loadFromFile("settings.xml"); } if(key == ' '){ color = ofColor(255); } }
void save(){ string path = ofToDataPath("gui.xml"); ofLogNotice() << "Saving gui to: " << path; gui.saveToFile(path); }