Switching panels , duplicate code.



  • @lalalandsynth said in Switching panels , duplicate code.:

    Must admit I dont know what I am doing.

    I don't know what you're doing either 😛

    Here's a simple way to do it

    HiseSnippet 1156.3ocsXssaaaDDcornQDaUPCP9.VjmjfScHYtU.WipZ4Kvn01BUtFFHHHfhbkzBSsKA4R6HD39EzOn9X9b7i8OHcVdQjRlRkhIluXuyMdlyN6NbTOetMIHf6iTZb9TOBR46U6OkIF2crEkgNdejxiUOwJPP7wwh1apmUP.wAonrwQRAJMpihd92eYOKWKlMISDBcAmZS9c5DpHSZuN+F008PKGx4zI4r9UcN1ly5xc4g.d1PUG4YYek0HxoVRypohT17.Gpf62WXIHAHk56wcl1eL+FVr8WPCnCbIxEFn9PfhEeH20QhXoTT2wTWmdo4c.BhRuLVXiXV3opmPcnyjmwF+PjBblG44CkZqBdF++vSuH3ojCd0ig2ST6a6S8DYZjX66TOlAaTCsfsf7vJ1VTs+VUsKGrfI1dh0UjC8gEy7n0az0eN9055s2ooVSMXiHPfu1xG6YwHtAG4yC8Lv6he262YIZMuu1AgBArXYNmW8Luap8hWbDQfGIkhMvf4BetaPSsgbebKJXm9NXJ9mwuD9yVa0to1mZpggm7HcauvfwsRS2QDQW9DONCVz5YdL2HiNiQdFdKLssLkkAXN3tpHLPvJQDdG88aGH8KJA5Z45N.pmawY6EYUrQIZkA310I4MWdxaVlj+7a3KG5lkI4WcDJSxad+jOVaV9m3WSMJykxH3ggLaAErnPVrkcJLeNTf4FRh4mFKRdyUo3RXiDiSoSYhjPoKaC8BYjaMewBk4P93YCy.Pa7t6BbCjYMVr1LJLvsBoftzQRFnaKlpLKKUYVcpxr7Tk4RoJy0gpLWEUYVFpJGIbJWPNi0ps1mzZncqFdQUCGVntjWsKwuP0xVX9qxwVrvICH9orbpgvc4y2rXyx0rvN9LYNC4riYTwYdjj0qtaGJ4PMzXQMAgfohn1JONosRb4Bh5HEk6tNcTTN.8TpgVWeMl46FqsulU0W3JJ8uBeMxku+4w6aIrjsiSHPfT8H9BpbuSYex0v24D2btg59jfqDbOjh1rqMAwwuylostkU4IuxbMjzQeD1XTdJrQMM+WFcC0QLNS.syXBcz3rOp5yC5LXT5mN0XSD5tuDYmfLIS5cnGsfTy7hQ4PqVoPqwbnM9e9lfz6K0Lu3qSOaDsotlf1TB5Ll8gflurXZ9xuRvGUNuDv2g+sA7n65UHymHdIfuQo.uwCN3+mhKaRDmGw0K6UdQU3+kxBmGqPnLJJTe97pDJyBQ0f0NToETKFJcupDpBSPbXGz8GfAFih6D5ZIle1J4.kIJfdnyMDibPEV.ULM+.mqw.W5kddvxB2mn1iJrGWLdqU.dglGOz3MY70lpGLbHwVjA15pGdYUmUcMfxevCET1nSrD9TYwvogS5CmBsI.RXxOqSVfTSdRLdstbsjY5SXNQK9B7jnzPtVIQoQpRzDKae9GRmLBH0GEIAvDK52Ing5Ix03YcuUU02VGMAla+C11Rp3GArWrOlUvmWVAedUE740Uvm2TAedaE74mVoOxexjeMTvmDeLADz6fnulRQ4.lETkEUQh9O.52DH0C
    

    You might also find this video helpful if you haven't seen it before.



  • Ok, will look at that video .

    I might not have explained properly either.
    The three buttons that do work , should reside in main panel, then I want to switch between main (containing the three switches) to just the Preset manager thereby removing the three from view.

    This is what I am trying to achieve, just doing it manually.
    Although eventually I would like it to be just the one button that opens up the preset browser
    Switching.gif



  • The three buttons that do work , should reside in main panel, then I want to switch between main (containing the three switches) to just the Preset manager thereby removing the three from view.

    The example I posted shows how to do that. I just put all of the panels and buttons separate but you can put them inside each other to get the layout you want.



  • @d-healey Awesome, thanks testing this.



  • @d-healey
    Excellent !!!! Thanks so much , I have struggled with this for longer then I care to admit .

    Thanks for your help an patience 🙂

    Quick question if I may, would it need much modification to to able to switch the second group with a bool/one button rather then 2 buttons ?
    I would like to make btnGroupTwo1 do the switching .

    Not essential just curious

    It seems to want to default to btnGroupOne2, trying to hack my way through changing that 🙂



  • I am having a problem with this .

    1.When Compiled it always goes to the same window.
    2, I cannot get this to be saved in a preset even though the buttons are set to saveInPreset, ...unless its problem #1 that is overriding it ?



  • Any control that has saveInPreset set to true will trigger its on control callback after on init completes. So if you have saveInPreset enabled on your page switching buttons the last button that triggers after on init will determine which page is displayed when your script runs.

    I have a video on my Patreon page about making a tabbed interface and I'm pretty sure I cover this situation there.



  • Thanks , checking out some videos



  • @d-healey I watched that video again , did the tutorial but I guess I am still a bit confused.
    Is there really no way to store which panel should show in a preset ?

    My plugin has this configuration where the panels are small, medium, large and which one is shown needs to be saved in a preset .rvb.jpg



  • @lalalandsynth You made another thread about this, I've responded there already 🙂


Log in to reply
 

14
Online

1.1k
Users

3.6k
Topics

30.9k
Posts