Skip to content

Instantly share code, notes, and snippets.

@moebiussurfing
Last active February 17, 2020 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moebiussurfing/cbb3521eae2849accd1a074b0f8f9cef to your computer and use it in GitHub Desktop.
Save moebiussurfing/cbb3521eae2849accd1a074b0f8f9cef to your computer and use it in GitHub Desktop.
openFrameworks - ofxGui / ofxPanel. customize panels. get from nested groups to minimize/maximize from added ofParameterGroup
void ofxFontAnimator::refreshGui_AllColors()
{
//gui_All_Colors.minimizeAll();
//collapse groups
auto &gAll = gui_All_Colors.getGroup("ALL COLORS");
auto &gF = gAll.getGroup("FONTS");
auto &gBg = gAll.getGroup("BACKGROUNDS");
auto &gGr = gBg.getGroup("GRADIENT BACKGROUND");
auto &gCtrl = gGr.getGroup("CONTROLS");
gAll.maximize();
gF.minimize();
gBg.minimize();
gBg.minimize();
gGr.minimize();
gF.maximize();
gBg.maximize();
if (ENABLE_BackgroundGradient)
{
gGr.maximize();
}
else
{
gGr.minimize();
}
gCtrl.minimize();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment