Way to collapse InterfaceGl groups?


#1

Hi all,

Quick question: is there currently a way to have groups in InterfaceGl default to collapsed?

I found the “opened” Option in Anttweakbar, but am not seeing it implemented anywhere in InterfaceGl
http://anttweakbar.sourceforge.net/doc/tools:anttweakbar:varparamsyntax#opened

Thanks in advance!!!


#2

You can use setOptions for the properties that are not wrapped in the Cinder class.
In this case it would be something like mParams->setOptions("Group 1", "opened=false");

If you want to apply it to the whole params window just use "" as the name. For example:
mParams->setOptions("", "valueswidth=100");


#3

Amazing, thank you @navadria!!!

Is there a list of all the available params in setOptions somewhere? I want to customize all the things now!


#4

Check out the AntTweakBar documentation.
Var params: http://anttweakbar.sourceforge.net/doc/tools:anttweakbar:varparamsyntax
Bar params: http://anttweakbar.sourceforge.net/doc/tools:anttweakbar:twbarparamsyntax


#5

awesome, thanks @gabor_papp!