@audiophil wrote:
Hi,
I would like to observe some variables with
ofxGui
. What works so far is to create anofLabel
and set the label with
myLabel = ofToString(myVariableToObserve);
in my update function, but it feels a bit cumbersome to manually add and update labels for many variables. I build the rest of the GUI based on multiple
ofParameterGroup
instances which I add to the GUI and this works just fine. So what I’m looking for is something like:
myParameterGroup.add(myReadOnlyParameterToObserve.set("myParameterName"));
In order to create a label in the GUI and keep it up to date, showing a string representation of my variable/parameter.
Any hints?
Posts: 1
Participants: 1