Script missing LAF element
-
I've added a pull request to the Scriptnode branch for this now.
-
@d-healey - could you do one for the midi device list too? Asking for a friend...
-
@Lindon That's already there ;) it's a list of toggle buttons (as is the channel list). If you check the
obj.parentType
in the LAF togglebutton function you can filter out the Midi Sources buttons. -
@d-healey - oh yeah - obviously - how silly of me...once its in the scriptnode branh could you ddo a quick demo of what you do to make it work?
-
@Lindon Midi sources is already in scriptnode, I didn't add it.
const var laf = Engine.createGlobalScriptLookAndFeel(); laf.registerFunction("drawToggleButton", function(g, obj) { if (obj.parentType == "MidiSources") { obj.value == 0 ? g.setColour(Colours.darkgrey) : g.setColour(Colours.white); g.drawAlignedText(obj.text, obj.area, "left"); } });
-
@d-healey
but the Midi-Channel List is in your scriptnode?
On your page? -
It's in this branch - https://github.com/davidhealey/HISE/tree/channelListLAF - just waiting for @Christoph-Hart to merge it.
-
Ok i can wait
The question is rather where to merge it in
I hope in "scriptnode" and not in
"scriptnode_codegen_rewrite"
or in both -
@MikeB I've made the pull request on the scriptnode branch.
-
Super - thanks for the info