Last active
February 17, 2020 05:42
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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