Hi, I guess there might not be an easy way to do this but many people are smarter than me, so maybe there is:
I have a thousand imgui buttons in my app, and I'd like to execute a small piece of code for each one of them to give some acoustic feedback when they are pressed.
The basic (not smart) idea is to wrap my sound:play() code inside a single playfeedback() function and call it inside each "button actions".
However, since they are many already, and adding the same piece of code is time consuming and prone to errors I was wondering if it might be possible to extend the imgui button class through lua to do it in one simple passage.
It would be easy if imgui:buttons were Core.class object but with imgui I am not sure if this is feasible and how, without touching imgui itself..