HISE Logo Forum
    • Categories
    • Register
    • Login

    Customise Macros

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 233 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DanHD
      DanH
      last edited by

      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...

      Screenshot 2021-02-26 at 09.27.34.png

      Y 1 Reply Last reply Reply Quote 1
      • Y
        yall @DanH
        last edited by

        @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.

        DanHD 1 Reply Last reply Reply Quote 0
        • DanHD
          DanH @yall
          last edited by

          @yall Thanks, I know how the macros work, I just want to change the image that appears when you link them

          DanHD 1 Reply Last reply Reply Quote 0
          • DanHD
            DanH @DanH
            last edited by

            @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();
            
            DanHD 1 Reply Last reply Reply Quote 0
            • DanHD
              DanH @DanH
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              52

              Online

              1.7k

              Users

              11.7k

              Topics

              101.9k

              Posts