Creating a DAW-style plugin slot (live.menu scripting/moving/hiding/showing)?
So I'm trying to create a DAW-style plugin slot where you see an empty panel, hovering over the panel changes the color, then when you click you get a drop-down menu (live.menu), ala Logic Pro X plugin selection UI. This is proving to be trickier than it seems.
I've tried this two ways but have run into problems with both.
The first method is having a fully transparent live.menu that feeds [hover] which works perfectly for the color changing and when I initially click on it. The problem here is that until I actually select something with live.menu, I have no way of making the textcolor show up again. I can't figure out how to send a 'bang' just by clicking on the live.menu (but not selecting anything).
The second method is using a ubutton as the [hover] trigger, and then using "script sendbox presentation_rect" to both move the ubutton out of the way AND move the non-transparent live.menu to the same position. The problem here is that I then have to manually click on the live.menu again.
SO, I'm looking for a way to either have live.menu declare that is has been clicked (but not selected) OR having live.menu show up as having been clicked.
Or if someone has any other suggestions on how to go about this.
Here are both of the approaches I've tried:
bringtofront/sendtoback aka thispatcher.maxhelp can help alot here, no matter if you use live-menu, umenu, menu, lcd or whatever.
Ah that's definitely more elegant than moving things around but still doesn't solve the 'send bang when clicked' or 'bringtofront while clicked' problem. Hmmm.
yeah, umenu style click-and-hold-to-select wont work here.
but isnt that dead since MacOS 7 anyway? i always thought ubumenu is useless for that reason. how do YOU click?
well you could bring the menu to front already when mouse-over. (lcd...)
That's what I'm doing in my second example, (though I'm moving laterally instead of front/back) but the issue is that once the menu is to the front you then have to click the menu again to actually expose the contents, rather than the plugin-selection-UX where clicking on the blank area not only shows the menu, but shows it's contents already exposed.
Small difference really, but just trying to make the interface as intuitive (and needless click-free) as possible.