Script missing LAF element
- 
 @d-healey 
 Version 2.1.0
 7 Mai 2021
 Build 650
- 
 You need to update, I didn't add the MIDI devices stuff until about May 15th. 
- 
 Ok thanks I will update 
 But that doesn't explain the function either, does it?
- 
 @MikeB Yep I added comments to all the functions  
- 
 Thanks David - This looks good - now I just need a few examples how to use one or the other 
 and I'll program my own settings window :-)PS: a little patreon video maybe? 
- 
 @MikeB You only need those two functions + your GUI, probably radio buttons but you could do it with panels, combo boxes, or sliderpacks, whatever you prefer. 
- 
 I just added LAF support for the MIDI channel list :) I still need to test it and I'll make a pull request tomorrow.  
- 
 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.parentTypein 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 


