How to make exclusive buttons with ofxGui?

just like the title says people, the idea is that say you have 3 buttons, setting one to true sets the other ones to false, i.e. theres always one thats true and the other 2 are false, how can this be done using ofxGui??

thx people!

I have no experience with ofxGui, but it seems that it does not have “radio buttons” which is what I think you are asking for. other Guis may have it…

But it should be quite simple to do it yourself.
you can write a function to turn all buttons off. And then every time you receive an event from a button you call that function before anything else.

I hope that helps : )

1 Like