You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be great to allow for a configurable setting of the ofxbraitsch data folder. Currently in one of my apps, I changed the hard-coded paths in the addon, but it'd be nice to control this from outside the addon.
I started on this by adding static ofxDatGui::setDataDir(const std::string& dir) and ofxDatGui::getDataDir() methods, but then we wind up with circular includes since ofxDatGui.h ends up #includeing ofxDatGuiThemes.h eventually. You can check out what I did on my branch, but maybe you've got a better approach in mind? mattfelsen@bb3f814
Cheers!
The text was updated successfully, but these errors were encountered:
Themes are assigned to guis & components so I'd rather not include a reference to either of them within the ofxDatGuiTheme class. I added a static ofxDatGui convenience method that sets a new ofxDatGuiTheme::AssetPath variable that will allow you to customize the location of the ofxbraitsch assets directory. LMK if this works for what you need.
Oh duh, not sure why I was thinking it had to be a static method on ofxDatGui. Perfect! I'll give this a shot later but this should be good for me. Thanks!
It'd be great to allow for a configurable setting of the ofxbraitsch data folder. Currently in one of my apps, I changed the hard-coded paths in the addon, but it'd be nice to control this from outside the addon.
I started on this by adding static
ofxDatGui::setDataDir(const std::string& dir)
andofxDatGui::getDataDir()
methods, but then we wind up with circular includes since ofxDatGui.h ends up#include
ing ofxDatGuiThemes.h eventually. You can check out what I did on my branch, but maybe you've got a better approach in mind?mattfelsen@bb3f814
Cheers!
The text was updated successfully, but these errors were encountered: