rezaali/ofxUI

suggestion: possibility to change values of an ofxUILabel ~ use it as an variable inspector

Closed this issue · 3 comments

Something like this:

guiMap["0"]->addLabel("dirName", &dirName); 

Where I can display variables, in this case the actual working directory.

This code runs without error but doesn't change label

ofxUILabel *l = (ofxUILabel*)guiMap["0"]->getWidget("dirName");
l->setLabel(dirName);

Thanks

great idea! Will be updating ofxUI next month when I get some time! In the
mean time feel free to send me a pull request.

On Wed, Apr 22, 2015 at 7:06 AM Dimitre notifications@github.com wrote:

Something like this:

guiMap["0"]->addLabel("dirName", &dirName);

Where I can display variables, in this case the actual working directory.


Reply to this email directly or view it on GitHub
#240.

@dimitre can you try this again and let me know if its still broken? I just tried it and its working on the most recent master.

@rezaali I'll be testing in a minute. I've noticed ofxUI is using some 0.9 specific commands like ofDrawLine ofDrawRectangle.
Thanks