How can i have a button that makes me go to a different section/page on my synth. Just like serum does with osc mix matrix and global pages
-
How can i have a button that makes me go to a different section/page on my synth. Just like serum does with osc mix matrix and global pages
-
-
@chimaera_09 Make the button show/hide a panel. Use the panel to house all your extra controls.
const pnlSettings = Content.getComponent("pnlSettings"); const btnSettings = Content.getComponent("btnSettings"); btnSettings.setControlCallback(btnSettingsControl); inline function btnSettingsControl(component, value) { pnlSettings.showControl(value); // button shows/hides the panel }You can add a button in the panel to close it too:
const btnSettingsClose = Content.getComponent("btnSettingsClose"); btnSettingsClose.setControlCallback(btnSettingsCloseControl); inline function btnSettingsCloseControl(component, value) { if (value) { pnlSettings.showControl(false); btnSettings.setValue(0); // sets the 'off' state of the button } }