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 load(){ string path = ofToDataPath("gui.xml"); ofLogNotice() << "Loading gui from: " << path; gui.loadFromFile(path); }