Simple button click to to change scenes

Hello,

How do I set up a graphical button that changes scenes when clicked?

I know how to this in Android studio / or java based style…

But how is this done in OF ?

I would suggest you to have a look at the examples in https://github.com/satoruhiga/ofxAnimationPrimitives and then add an event listener for the mouse event that you want to catch. In examples/events/simpleEventsExample there is everything you need to get started with events.

If the addon is giving you trouble with the last OF version, I have uploaded a patched version for the current master here https://github.com/edap/ofxAnimationPrimitives