Forum
    • Categories
    • Register
    • Login

    Quick poll - close Preset Browser when preset is clicked/loaded?

    Scheduled Pinned Locked Moved General Questions
    10 Posts 2 Posters 64 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

      Trying to decide if my Preset Browser panel should close when the user loads a preset.

      For just loading one preset it's great because it saves the user a click to close it.

      For exploring many presets, it's a pain because they have to click to open it again every time.

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

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @dannytaurus
        last edited by

        @dannytaurus I use double click to load and close, single click just to load.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        dannytaurusD 3 Replies Last reply Reply Quote 0
        • dannytaurusD
          dannytaurus @David Healey
          last edited by

          @David-Healey Ooh, nice! 👌

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

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

            @David-Healey I'm calling that a statistically significant result with a set size of 1 😂

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

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

              @David-Healey That doesn't seem to be something that can be added to the built-in PresetBrowser floating tile.

              Did you roll your own preset browser?

              Or is it indeed possible with the built-in one?

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

              David HealeyD 1 Reply Last reply Reply Quote 0
              • David HealeyD
                David Healey @dannytaurus
                last edited by

                @dannytaurus said in Quick poll - close Preset Browser when preset is clicked/loaded?:

                Or is it indeed possible with the built-in one?

                Broadcaster

                https://codeberg.org/LibreWave/RhapsodyBoilerplate/src/branch/main/includes/Presets.js#L159

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

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

                  @David-Healey OK! Finally time for me to dive into broadcasters! 🚀

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

                  David HealeyD 1 Reply Last reply Reply Quote 0
                  • David HealeyD
                    David Healey @dannytaurus
                    last edited by

                    @dannytaurus alt text

                    Free HISE Bootcamp Full Course for beginners.
                    YouTube Channel - Public HISE tutorials
                    My Patreon - HISE tutorials

                    dannytaurusD 2 Replies Last reply Reply Quote 2
                    • dannytaurusD
                      dannytaurus @David Healey
                      last edited by

                      @David-Healey That's what I'm afraid of! 😂

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

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

                        @David-Healey Turned out to be quite painless in the end. 🎉

                        const pnlPresetBrowser = Content.getComponent("pnlPresetBrowser"); // parent panel
                        const fltPresetBrowser = Content.getComponent("fltPresetBrowser"); // floating tile
                        const bc = Engine.createBroadcaster({"id": "PresetBrowser", "args": [component, obj]});
                        
                        bc.attachToComponentMouseEvents(["fltPresetBrowser"], "Clicks Only", "");
                        
                        bc.addListener("mouseAction", "Mouse action to close preset browser", function(component, event)
                        {
                            if (!isDefined(event.columnIndex)) return;
                            if (event.doubleClick && event.columnIndex == 2) pnlPresetBrowser.showControl(false);
                        });
                        

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

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

                        17

                        Online

                        2.1k

                        Users

                        13.2k

                        Topics

                        114.1k

                        Posts