Customise Macros
-
Does anyone know how to customise (or where the source file is) the macro square or the button grey out? Would be nice to be able to choose how it shows what's linked to the macro...
-
@DanH the macro is you who must connect. and there is a small number that appears on the assigned buttons. you can also configure them.
-
@yall Thanks, I know how the macros work, I just want to change the image that appears when you link them
-
@DanH found it in the LAF Docs: https://docs.hise.audio/glossary/custom_lookandfeel.html#getting-started
laf.registerFunction("drawNumberTag", function(g, obj) { obj.area[0] += obj.area[2] - 16; obj.area[1] += 2; obj.area[2] = 14; obj.area[3] = 14; g.setColour(0x88000000); g.fillRoundedRectangle(obj.area, 4); g.setColour(Colours.white); g.drawRoundedRectangle(obj.area, 4, 2); var letters = ["A", "B", "C"]; g.drawAlignedText(letters[obj.macroIndex], obj.area, "centred"); });
And make sure to put in the below as well
const var laf = Engine.createGlobalScriptLookAndFeel();
-
This post is deleted!