GUI Scaling Not Working in Compiled Plugins
-
@DabDab the resizing code that Christoph provided is working here. Did you try setting the "allowCallbacks" property to "All Callbacks" (maybe) ?
-
@Matt_SF Please watch my video. I have chosen allow callback to Clicks Hover & Dragging.
-
@DabDab I watched it. I suggested that maybe the 'click, hover and drag' level was not sufficient but I had some time to test it and it works fine too.
Do you have a widget or something which is covering the resize panel in the interface ? -
@Matt_SF I have placed
zoomPanel
at the very last of my component stack. I am not getting any valid reason why it is not working. -
@Matt_SF I have found what is causing the interrupt with the GUI scaling script by @Christoph-Hart. I have Multi Tab Interface. when I am bypassing it
//include("MultiTab.js");
GUI scaling is working fine.
The multitab Script is (minimal code e.g.)inline function onKeyboardControl(component, value) { if(value) { KeyboardPnl.showControl(1); AmpEnvPnl.showControl(false); FltEnvPnl.showControl(false); LFOPnl.showControl(0); FxPnl.showControl(false); SeqPnl.showControl(false); SettingsPnl.showControl(false); } }; Content.getComponent("Keyboard").setControlCallback(onKeyboardControl);
What is the solution to get Multitab panel interface as wel as GUI Scaling?
I have written GUI Scaling script in main Interface.
-
@DabDab your if statement needs curly braces
-
@d-healey No luck.. I forgot here to put it under curly braces.. Edited.
-
@DabDab Because it doesn't enter the statement if
value == 0
const var somePnls = [AmpEnvPnl, FltEnvPnl, LFOPnl, FxPnl, SeqPnl, SettingsPnl]; inline function onKeyboardControl(component, value) { KeyboardPnl.showControl(value); for (p in somePnls) p.showControl(!value); }; Content.getComponent("Keyboard").setControlCallback(onKeyboardControl);
-
@ustk Do I need to write it on every button Callbacks?
-
@DabDab I don't know your structure but when you attempt to do the same thing multiple times, there's always a way to condense/simplify your code
-
@ustk Here is my Structure just the Button and panelCode.
const var somePnls = [KeyboardPnl,AmpEnvPnl, FltEnvPnl, LFOPnl, FxPnl, SeqPnl, SettingsPnl]; inline function onKeyboardControl(component, value) { KeyboardPnl.showControl(value); for (p in somePnls) p.showControl(!value); }; Content.getComponent("Keyboard").setControlCallback(onKeyboardControl); inline function onAmpEnvControl(component, value) { AmpEnvPnl.showControl(value); for (p in somePnls) p.showControl(!value); }; Content.getComponent("AmpEnv").setControlCallback(onAmpEnvControl); inline function onFltEnvControl(component, value) { FltEnvPnl.showControl(value); for (p in somePnls) p.showControl(!value); }; Content.getComponent("FltEnv").setControlCallback(onFltEnvControl); inline function onLFOControl(component, value) { LFOPnl.showControl(value); for (p in somePnls) p.showControl(!value); }; Content.getComponent("LFO").setControlCallback(onLFOControl); inline function onEffectsControl(component, value) { FxPnl.showControl(value); for (p in somePnls) p.showControl(!value); }; Content.getComponent("Effects").setControlCallback(onEffectsControl); inline function onSequencerControl(component, value) { SeqPnl.showControl(value); for (p in somePnls) p.showControl(!value); }; Content.getComponent("Sequencer").setControlCallback(onSequencerControl); inline function onSettingsControl(component, value) { SettingsPnl.showControl(value); for (p in somePnls) p.showControl(!value); }; Content.getComponent("Settings").setControlCallback(onSettingsControl);
But I am getting Error...
When clicking on Buttons.
Mu Buttons are RadioGroup Buttons -
const var somePnls = [KeyboardPnl,AmpEnvPnl, FltEnvPnl, LFOPnl, FxPnl, SeqPnl, SettingsPnl];
What is
KeyboardPnl
? Is it a variable name?AmpEnvPnl.showControl(value); for (p in somePnls) p.showControl(!value);
Since
AmpEnvPnl
is withinsomePnls
it will always be hidden. -
@DabDab If it's just to switch between panels then one callback with 2 lines is enough
Or you'll have to provide us with a more detailed snippet...HiseSnippet 947.3ocyV09ZaaDF+NGekJs0xJzOWNxmjgLicRWagRndwIoX1RhYtqrwXTNKcJ9HR2It6TRMi.6Os8k9+S+OX64jjsUZbbqMrwzGD54keO528xyKC0pPtwnzHr2allwQ3ulLZpzNo+DlPhFbHB+PxILikqokpNXZFyX3QHLdqW6Tf8ZhJd93qNfkvjg7EpPn2pDg7eTjJrKzNr2OHRRNlEweiHsl2Os2fPkruJQkC7YKRGTFK7B147SYN2ZPP36cTjvpzirLK2.9bfJZ5nIpqjk9+VgQLNg6D5hFAApTMp+DQRzvYqUCBgaNbwJeqxU9iImHhDy0uXG3aJLPWfn9d.twpnT20fR3ZTpYIkdDYTnVjYWXwwmuhLPBGHwLXqtNUJ8E03CMH8UfGRa6T1E7i0fvbDAOqSmcnvqVuz22G1uMV5kLMcrUZn6S+sYHOma6qRyTRPHX6CxsVkr61s1wmdqmUAY20Gxda252eYcpkISVA0Fxj7j0hYEH1csQTwKeegLQH4z3bYnUnjTkzs44PpUIAgyfsCP9jbdK++v2SDSCpj7.QuXklFjQExhEGnzyKqsAt0LKJN0sExH96OKNHqEc+8KNglqZ9eoEbN5cs+0.yJB5XWPct1hNtswsJJBXeVRxXHaJ3FjEvVaUbpxxOSFTPX+q8oepo33kZqJVIb8RM6xw0qBXfLOcLWWe6x4HjDbyLq68kkYEVdBVyQkbfTXOKiWIerJIxkw39914gnpq.vW+7fCYVlK0rRG3WFWaEN5fOjeITaqLQ0ibH2bgUkAzb98FPssv5CqRiKueiDQN.UoTn2un.3u1a5bg+j06JQjcBBSvQf7Dt37IVmzS.IMKRndsVkmUtLLrK4CjC0b3D2UJPXNQkBTfogHhafVKNsacNI++Am1qFm9qq9ufSMK4zClUB1UBnfR2mTVx4tN4Phd0iC4yDm6b2Fhykythi2ZcB4ctY8Ig71MbfVcpn7Dl8l8+bM5qL.ot2noiqwhzHrSqOHvZzTryJaJ9kRwGQFJrgSVNGarDNBI0+avwpQId.4n3XdncAAaRN9W1z4F9L+9eRkaExyOgY0B3bmbZd5HXBpPN72kvsAiKYngqvVobGmraGXDWFUH72vSkwtNYbkwtyLhRYgZ06BKKX6FV49EZ.NIKlMyCFRDjocQEEwAbjNs6fRg4ldWXna4+sPs1kiY2M.yda.lmtAX9tM.yy1.LOeCv7hUhwMx52maUokoCfhgGUzMCiORxfaVE2BQ+CL7E13B
-
@d-healey KeyboardPnl, AmpEnvPnl all are panels.
-
@DabDab In the interface designer they are, but what are they in that bit of script you posted?
-
@ustk said in GUI Scaling Not Working in Compiled Plugins:
@DabDab If it's just to switch between panels then one callback with 2 lines is enough
Or you'll have to provide us with a more detailed snippet...HiseSnippet 947.3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Zd5HXBpPN72kvsAiKYngqvVobGmraGXDWFUH72vSkwtNYbkwtyLhRYgZ06BKKX6FV49EZ.NIKlMyCFRDjocQEEwAbjNs6fRg4ldWXna4+sPs1kiY2M.yda.lmtAX9tM.yy1.LOeCv7hUhwMx52maUokoCfhgGUzMCiORxfaVE2BQ+CL7E13B
Solved my problem... Got the learning material from here... Thank you @ustk
-
-