These are basic things like reading user inputted text in a label, editing text in a label at runtime, etc. Doing this without PGM is easy.
However, in Foleys PGM, I’ve only ever accessed values of Sliders, ComboBoxes, and ToggleButtons, for which I can use AudioParameterFloat, AudioParameterChoice and AudioParameterBool to get and set their values. And I’ve looked over the examples, but didn’t find anything that showed how to work with editable Labels in PGM. I don’t think it should require GuiItem, since the Label component is already built into PGM.
So… what am I missing? Are there any examples of doing basic things with Labels in PGM, like reading user inputted text from an Editable label?
But I don’t see a way to do this for labels in Foleys PGM.
For TextButtons, they have an onClick property, for which one can have a trigger callback. But Foleys PGM doesn’t expose an onTextChange for Labels.
So, how can one do (3) and (4) with Foleys PGM? I expect this is fairly simple, but I’m not seeing it.
Yeah. (3) works now, not sure what was my issue before.
My value listener isn’t quite working. I can reimplement the value listener that you had for the gain slider in “PlayerExample” just fine. But when I try it in my plugin (not app) with a slightly different way to set up the Magic GUI Value Tree, its not hearing changes in the gain slider on the interface. That is,
will trigger the callback, but the user moving the slider won’t trigger it.
No matter, its probably some silly bug that I’m just not seeing yet.
I’ll try your suggestion above.