Hi, just started using controlP5's newest version (0.2.12) and had a few questions:
why do all the interface elements have an unsightly line through them when in OPENGL mode? (something to do with how OPENGL renders shapes/faces, i believe, since i see same problem with seams between other shapes.)
the Knob element is drawn with lines that are affected by strokeWeight! i believe it would be better form if they force weight to 1 pixel. anything else distorts the control and can make it unusable. (make a knob that changes strokeWeight to see what i mean.)
why do control labels force your text into all caps? the text field element displays lowercase, so it's not a font limitation.
what's the proper way to round off control values, or only allow Ints? i tried this, which actually worked fine, but gave me error "exception: java.lang.reflect.InvocationTargetExceptionERROR. an error occured while forwarding a Controller value to a method in your program. please check your code for any possible errors that might occur in this method." obviously some recursive warning, what's the correct way to do it?
Code:
void Line_Weight(float _lw) {
_lw = round(_lw);
lineWeight = _lw;
controlP5.controller("Line_Weight").setValue(_lw); // by the way, why doesn't 'this' work here?
}
i know it seems redundant, but if you don't force the setValue inside the event method, the rounded off value gets immediately overwritten by a non-rounded value. perhaps i should be defining a different or additional method?
i know some of these questions i can resolve by extending classes, but i thought there might be a better way...
thanks
eric