HISE Logo Forum
    • Categories
    • Register
    • Login

    Previous & Next preset buttons are working successfully but.....

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 499 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.
    • L
      LeeC
      last edited by LeeC

      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);
      
      
      
      
      
      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        Is saveInPreset set to enabled for the preset browser floating tile?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        L 1 Reply Last reply Reply Quote 0
        • L
          LeeC @d.healey
          last edited by LeeC

          @d-healey

          There is no saveInPreset option for the preset browser floating tile.

          It appears for other components but not for the preset browser.

          Thanks

          1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart
            last edited by

            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.

            L 1 Reply Last reply Reply Quote 2
            • L
              LeeC @Christoph Hart
              last edited by

              @Christoph-Hart makes sense thanks.
              I'll take a look at the code in a short while.

              Thanks again ☺

              1 Reply Last reply Reply Quote 0
              • L
                LeeC
                last edited by

                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 ✌

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

                52

                Online

                1.7k

                Users

                11.7k

                Topics

                101.9k

                Posts