HISE Logo Forum
    • Categories
    • Register
    • Login

    Change UI per preset

    Scheduled Pinned Locked Moved General Questions
    7 Posts 3 Posters 254 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dannytaurusD
      dannytaurus
      last edited by

      I'd like to change the UI per batch of presets.

      Say presets 1-20 should have Look1, presets 21-40 should have Look2, etc.

      Look1 and Look2, etc will have the same basic layout (number of controls and positioning) but the visual assets will be different.

      Different background images. different knob styles (vectors through LAF), different meters, etc.

      How would I do this?

      I can imagine reacting to a preset change and showing/hiding the required background but how would I switch out the controls and meters?

      Meat Beats: https://meatbeats.com
      Klippr Video: https://klippr.video

      DanHD 1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @dannytaurus
        last edited by

        @dannytaurus you could have hidden buttons which change these ui states (display certain panels, images etc), and save those with each preset. Otherwise perhaps the preset handler could 'handle' this...

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

        dannytaurusD 1 Reply Last reply Reply Quote 0
        • dannytaurusD
          dannytaurus @DanH
          last edited by

          @DanH said in Change UI per preset:

          @dannytaurus you could have hidden buttons which change these ui states (display certain panels, images etc), and save those with each preset.

          Ooh, that's an interesting idea! So the hidden button would be set to hide/show the real controls and the state of that button would be saved with each preset. Nice!

          Do hidden (visible: disabled) controls still get saved with the preset? Somehow I thought by hiding them they would not save. I'll try it out.

          @DanH said in Change UI per preset:

          @dannytaurus Otherwise perhaps the preset handler could 'handle' this...

          Doing it in the preset handler - would you recommend multiple versions of the same control, say MIX LEVEL, each visually different, or just use one MIX LEVEL control and re-style/re-draw it when the preset changes?

          Meat Beats: https://meatbeats.com
          Klippr Video: https://klippr.video

          DanHD ustkU 2 Replies Last reply Reply Quote 0
          • DanHD
            DanH @dannytaurus
            last edited by

            @dannytaurus hidden yes, disabled probably not... I've never tried it though. Don't disable, just hide it for this purpose. And check SaveInPreset is enabled in the attributes section on the right.

            If you're drawing panels for each control then it could get a little messy trying to redraw these with preset changes. I'm sure it's doable though. I would probably do a panel swap myself with the different designs on the different panels. However if it was a simple colour change and the design otherwise stays the same then redrawing is actually simpler. I have 4 colour schemes in one of plugins that users can choose between at the click of a button.

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @dannytaurus
              last edited by

              @dannytaurus If this is just a matter of lookAndFeel, then yes definitely go for a theme management system rather than hiding components.

              With one unique variable, you can:

              • draw different LAF within the same function using a switch condition
              • redraw panels with different image stored in arrays
              • use colours from a predefined array
              • etc...

              Can't help pressing F5 in the forum...

              1 Reply Last reply Reply Quote 0
              • ustkU
                ustk
                last edited by ustk

                A simple example of theme management:

                HiseSnippet 1316.3ocyW01aZbDDdOaeIgKMQMR8yQm3SmqPDvuDSUTUMfAaT4MYHQMJxxZ4t8N15ico2sXaTkk5O49Onc1cO7cDvNoH0phrs7ryNy7LuryLzOh6Rhi4QHCqgymRPFei4f4Lw35iwTFp0IHiWZ1AGKHQ15ipMeJNNl3gLL19T4AF41Ao97m+TMbHl4RROBg9.m5RZSmPEom1+3elFF1D6QFRmj41GbbKWNqNOjOCvy1lkPSwtWgCHcwxqskI5Lb7Xjw2atOwauJUvGdv966V4Gp3djKtBws7niJsG12a+JDuQdGb3AXjwSZ3QE7nABrfDiL1oF2a9fw7aXZC7AZLcTHQRTFM.rr93l7POoKJOEUeLMzq+h.ULBzR+zv115v12Y1g5Qu+7zv22pXXmJQ1.nwVKCusWBdkeH3sFHYjAR6ngzqLG3FQmJR4HwyyMawfroOFxSYgh9tnsbMMqygavDEmfuhzLBHtWBm2VpTAa3O69NKKHWEKruFGY2GyHgks+Q6ERFPD04SlxY.gSdM67fLohTalPvYOrLI7kBYY8l2XeV0tmztg8vyZzowfr1VLlLgTSvhAU8o0qqEWoT9cKXYu9OO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q6xpZEA2aSEb+MUvC1TAObSE7sapfGsoBV4KKnrcW0YB9D8yFDpS+FpgnFFMT8CUUqn+FXdNJAD
                

                Can't help pressing F5 in the forum...

                dannytaurusD 1 Reply Last reply Reply Quote 1
                • dannytaurusD
                  dannytaurus @ustk
                  last edited by

                  @ustk Perfect, thanks! 🙌

                  Meat Beats: https://meatbeats.com
                  Klippr Video: https://klippr.video

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  10

                  Online

                  1.7k

                  Users

                  11.9k

                  Topics

                  103.3k

                  Posts