Hello,
I’m using ofxImGui and I want my gui float slider to bind to an ofxJsonSettings variable as follows:
In ofApp.h I do the following:
ofParameter<float> test{ "Test Float", Settings::getFloat("para"), 0.0f, 1.0f };
ofParameterGroup testing{ "Test Group", test };
In ofApp.cpp I do the following:
if (ofxImGui::BeginTree(this->testing, mainSettings))
{
ofxImGui::AddParameter(this->test);
ofxImGui::EndTree(mainSettings);
}
The issue is that the ofxImGui::AddParameter() function only accepts binding to an ofParameter, so is there a way to bind the ofxJsonSettings::Settings::getFloat() to the ofParameter?