Quick poll - close Preset Browser when preset is clicked/loaded?
-
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.
-
@dannytaurus I use double click to load and close, single click just to load.
-
@David-Healey Ooh, nice!

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

-
@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?
-
@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
-
@David-Healey OK! Finally time for me to dive into broadcasters!

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

-
@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); });
