Hi, I’ve followed a few tutorials and know how to use the GUI to make buttons, type inputs and color pickers but now that I put all these in classes I found it easier to use the ofParameter class and just add param groups for each class to a main GUI.
The problem with this is that using ofParameter I only understand how to create simple sliders and such like float,int,boolean and vec3. How can I add buttons/type inputs/ and color pickers to param groups ?
right click on the float slider, and enter the value you want to use. You can use an int in place of a float, but not the reverse of course…
I think you might mean toggle? button turns on or off when pressing on it, toggle sends a On message then turns itself Off on the next frame. For that, I personnaly check its value in the ofApp::update :
cout << "ok we got an ON message" << endl;
// do something with it
myButton = false;