Previous & Next preset buttons are working successfully but.....
-
Hey guys,
So I've set up 2 buttons that move the preset selection to the next or previous item successfully.
The only issue I have is that, the preset browser window pops up when either of these buttons are pressed.I currently have a label set up to display the current preset name (thanks to d.healey), so having the preset browser window pop up when next> or <previous are clicked is uneccessary.
Is there a way to stop the preset browser window from showing when these buttons are pressed.
Hope this makes sense.
inline function onbtnPreset0Control(component, value) { if (value == 1) Engine.loadPreviousUserPreset(true); }; Content.getComponent("btnPreset0").setControlCallback(onbtnPreset0Control); inline function onbtnPreset1Control(component, value) { if (value == 1) Engine.loadNextUserPreset(true); }; Content.getComponent("btnPreset1").setControlCallback(onbtnPreset1Control);
-
Is
saveInPreset
set to enabled for the preset browser floating tile? -
There is no
saveInPreset
option for the preset browser floating tile.It appears for other components but not for the preset browser.
Thanks
-
Yes that is correct FloatingTiles don‘t have a saveable state so the property is hidden.
My guess is that you have a UI control somewhere that shows the preset browser and is set to saveInPreset=true so that it fires its callback on preset load.
-
@Christoph-Hart makes sense thanks.
I'll take a look at the code in a short while.Thanks again
-
Got this all sorted in the end.
There was indeed a control that was set to saveInPreset=true.Thanks to @Christoph-Hart and @d-healey for the help