rezaali / ofxUI

[DEPRECATED] UI Addon for openFrameworks
http://www.syedrezaali.com/#/ofxui-project-showcase/
518 stars 202 forks source link

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

Closed dimitre closed 9 years ago

dimitre commented 9 years ago

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

rezaali commented 9 years ago

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 https://github.com/rezaali/ofxUI/issues/240.

rezaali commented 9 years ago

@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.

dimitre commented 9 years ago

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