LAF affects Module Tree GUI
-
Hello!
It's possible to prevent the LAF code from affecting the GUI of HISE modules in the Module Tree?
After adding my LAF code, the modules GUI disappear and I'm unable to make any modifications.
-
@problema Global LAF affects everything in Hise
This is partly why LocalLAF arrived (only components that are set to a local LAF are modified)So transform your global LAF into local ones:
const var myLocalLAF = Content.createLocalLookAndFeel(); myComponent.setLocalLookAndFeel(myLocalLAF); // you can set LAF to multiple components using a loop instead myLocalLAF.registerFunction("drawRotarySlider", function(g, obj) { // Your LAF });
Note that you can create as many local LAFs as you want if, for instance, you need different knobs LAFs
Then go to
View/Reset custom Look And Feel
so all previous global LAF are reset -
@ustk thank's a lot!