Forum
    • Categories
    • Register
    • Login
    1. Home
    2. cassettedeath
    3. Posts
    C
    • Profile
    • Following 1
    • Followers 0
    • Topics 27
    • Posts 111
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Sample import dialog menu + alert window LAF (Example)

      @David-Healey Oh yes! I did watch that video and have been using the unicode with buttons, but never wrapped my head using it that way.

      (Might be easier for newbies just to copy and paste this in!)

      posted in Scripting
      C
      cassettedeath
    • Sample import dialog menu + alert window LAF (Example)

      Here's a simple custom LAF for the sample import menu and alert windows.

      The icons are from Phospher Icons so they are MIT License.

      Big ups to everyone - especially to those who answer questions and provide noice snippet examples :)

      const var laf = Engine.createGlobalScriptLookAndFeel();
      
      
      
      // Customize the alert window background
      laf.registerFunction("drawAlertWindow", function(g, obj) {
          g.fillAll(0xFF000000); // Dark background
          
          var titleArea = [0, 0, obj.area[2], 30];
          g.setColour(0x44000000);
          g.fillRect(titleArea);
          
          g.setColour(Colours.white);
          g.drawRect(obj.area, 1);
          
          g.setFont("Arial", 22);
          g.drawAlignedText(obj.title, titleArea, "centred");
          
         
      });
      
      // Customize dialog buttons
      laf.registerFunction("drawDialogButton", function(g, obj) {
          g.fillAll(0x22000000);
          
          if(obj.over) g.fillAll(0x44FFFFFF);
          if(obj.down) g.fillAll(0x66FFFFFF);
          
          g.setFont("Arial", 16.0);
          g.setColour(Colours.white);
          g.drawAlignedText(obj.text, obj.area, "centred");
      });
      
      // Customize text styling
      laf.registerFunction("getAlertWindowMarkdownStyleData", function(obj) {
          obj.font = "Arial";
          obj.fontSize = 14;
          obj.textColour = Colours.white;
          
          return obj; // Important: must return the object
      });
      
      laf.registerFunction("drawAlertWindowIcon", function(g, obj) {
          var p = Content.createPath();
          
          if(obj.type == "Question") {
              p.loadFromData([ 110,109,20,150,65,68,162,15,144,67,98,242,138,64,68,72,225,141,67,155,118,63,68,236,161,139,67,114,14,63,68,0,168,137,67,98,20,174,62,68,152,216,135,67,105,168,62,68,129,216,132,67,190,162,62,68,129,240,129,67,98,29,152,62,68,190,18,121,67,198,140,62,
      68,6,212,108,67,226,107,60,68,117,80,100,67,98,254,74,58,68,228,204,91,67,80,59,55,68,139,159,91,67,192,135,52,68,7,117,91,67,98,192,19,51,68,90,94,91,67,180,147,49,68,174,71,91,67,0,172,48,68,56,198,89,67,98,192,175,47,68,148,37,88,67,92,143,46,68,53,
      212,83,67,46,120,45,68,174,167,79,67,98,68,143,43,68,141,80,72,67,192,99,41,68,0,0,64,67,0,128,38,68,0,0,64,67,98,64,156,35,68,0,0,64,67,112,113,33,68,141,80,72,67,209,135,31,68,174,167,79,67,98,164,112,30,68,53,212,83,67,246,80,29,68,148,37,88,67,0,
      84,28,68,56,198,89,67,98,183,109,27,68,174,71,91,67,64,236,25,68,91,94,91,67,64,120,24,68,8,117,91,67,98,175,196,21,68,139,159,91,67,1,181,18,68,228,204,91,67,29,148,16,68,117,80,100,67,98,57,115,14,68,6,212,108,67,110,107,14,68,190,18,121,67,66,93,14,
      68,129,240,129,67,98,150,87,14,68,129,216,132,67,235,81,14,68,152,216,135,67,142,241,13,68,0,168,137,67,98,101,137,13,68,129,160,139,67,13,117,12,68,72,225,141,67,235,105,11,68,162,15,144,67,98,35,148,9,68,118,225,147,67,0,128,7,68,128,56,152,67,0,128,
      7,68,0,0,158,67,98,0,128,7,68,128,199,163,67,35,148,9,68,31,29,168,67,235,105,11,68,94,240,171,67,98,13,117,12,68,184,30,174,67,101,137,13,68,20,94,176,67,142,241,13,68,0,88,178,67,98,235,81,14,68,104,39,180,67,150,87,14,68,128,39,183,67,66,93,14,68,
      128,15,186,67,98,227,103,14,68,160,118,191,67,57,115,14,68,254,149,197,67,29,148,16,68,197,215,201,67,98,1,181,18,68,141,25,206,67,175,196,21,68,58,48,206,67,64,120,24,68,124,69,206,67,98,64,236,25,68,210,80,206,67,76,108,27,68,41,92,206,67,0,84,28,68,
      228,28,207,67,98,64,80,29,68,54,237,207,67,164,112,30,68,230,21,210,67,209,135,31,68,41,44,212,67,98,187,112,33,68,186,215,215,67,64,156,35,68,0,0,220,67,0,128,38,68,0,0,220,67,98,192,99,41,68,0,0,220,67,143,142,43,68,186,215,215,67,46,120,45,68,41,44,
      212,67,98,92,143,46,68,230,21,210,67,10,175,47,68,54,237,207,67,0,172,48,68,228,28,207,67,98,180,147,49,68,41,92,206,67,192,19,51,68,210,80,206,67,192,135,52,68,124,69,206,67,98,80,59,55,68,58,48,206,67,254,74,58,68,142,25,206,67,226,107,60,68,197,215,
      201,67,98,198,140,62,68,253,149,197,67,29,152,62,68,160,118,191,67,190,162,62,68,128,15,186,67,98,105,168,62,68,128,39,183,67,20,174,62,68,104,39,180,67,114,14,63,68,0,88,178,67,98,155,118,63,68,128,95,176,67,242,138,64,68,184,30,174,67,20,150,65,68,
      94,240,171,67,98,220,107,67,68,138,30,168,67,0,128,69,68,128,199,163,67,0,128,69,68,0,0,158,67,98,0,128,69,68,128,56,152,67,220,107,67,68,226,226,147,67,20,150,65,68,162,15,144,67,99,109,174,99,62,68,150,207,165,67,98,70,16,61,68,41,148,168,67,210,176,
      59,68,210,112,171,67,120,246,58,68,182,244,174,67,98,232,67,58,68,43,85,178,67,29,60,58,68,234,48,182,67,7,53,58,68,124,237,185,67,98,241,45,58,68,124,205,189,67,38,38,58,68,65,220,193,67,200,73,57,68,145,147,195,67,98,106,109,56,68,225,74,197,67,147,
      105,54,68,227,91,197,67,190,118,52,68,15,106,197,67,98,116,152,50,68,59,120,197,67,148,170,48,68,210,135,197,67,90,250,46,68,240,236,198,67,98,104,56,45,68,166,97,200,67,20,202,43,68,140,32,203,67,202,103,42,68,92,199,205,67,98,130,5,41,68,44,110,208,
      67,110,155,39,68,146,36,211,67,0,128,38,68,146,36,211,67,98,146,100,37,68,146,36,211,67,168,247,35,68,86,107,208,67,52,152,34,68,92,199,205,67,98,193,56,33,68,98,35,203,67,150,199,31,68,165,97,200,67,165,5,30,68,240,236,198,67,98,106,85,28,68,208,135,
      197,67,139,103,26,68,58,120,197,67,66,137,24,68,14,106,197,67,98,66,153,22,68,226,91,197,67,224,145,20,68,76,76,197,67,55,182,19,68,144,147,195,67,98,143,218,18,68,213,218,193,67,14,210,18,68,39,211,189,67,248,202,18,68,124,237,185,67,98,226,195,18,68,
      234,48,182,67,23,188,18,68,42,85,178,67,136,9,18,68,180,244,174,67,98,45,79,17,68,210,112,171,67,186,239,15,68,40,148,168,67,82,156,14,68,150,207,165,67,98,234,72,13,68,4,11,163,67,183,237,11,68,220,54,160,67,183,237,11,68,0,0,158,67,98,183,237,11,68,
      36,201,155,67,85,74,13,68,80,239,152,67,82,156,14,68,105,48,150,67,98,79,238,15,68,130,113,147,67,45,79,17,68,46,143,144,67,136,9,18,68,74,11,141,67,98,23,188,18,68,214,170,137,67,227,195,18,68,22,207,133,67,248,202,18,68,132,18,130,67,98,14,210,18,68,
      7,101,124,67,218,217,18,68,127,71,116,67,55,182,19,68,222,216,112,67,98,149,146,20,68,62,106,109,67,108,150,22,68,59,72,109,67,66,137,24,68,227,43,109,67,98,139,103,26,68,139,15,109,67,107,85,28,68,94,240,108,67,165,5,30,68,32,38,106,67,98,150,199,31,
      68,182,60,103,67,235,53,33,68,231,190,97,67,52,152,34,68,72,113,92,67,98,126,250,35,68,168,35,87,67,146,100,37,68,220,182,81,67,0,128,38,68,220,182,81,67,98,110,155,39,68,220,182,81,67,88,8,41,68,84,41,87,67,203,103,42,68,72,113,92,67,98,63,199,43,68,
      60,185,97,67,105,56,45,68,182,60,103,67,90,250,46,68,32,38,106,67,98,149,170,48,68,94,240,108,67,117,152,50,68,139,15,109,67,190,118,52,68,227,43,109,67,98,190,102,54,68,58,72,109,67,32,110,56,68,104,103,109,67,200,73,57,68,222,216,112,67,98,112,37,58,
      68,85,74,116,67,241,45,58,68,178,89,124,67,7,53,58,68,132,18,130,67,98,29,60,58,68,22,207,133,67,233,67,58,68,214,170,137,67,120,246,58,68,75,11,141,67,98,210,176,59,68,46,143,144,67,70,16,61,68,215,107,147,67,174,99,62,68,105,48,150,67,98,22,183,63,
      68,252,244,152,67,73,18,65,68,36,201,155,67,73,18,65,68,0,0,158,67,98,73,18,65,68,220,54,160,67,171,181,63,68,176,16,163,67,174,99,62,68,150,207,165,67,99,109,73,210,41,68,36,201,186,67,108,73,210,41,68,36,201,186,67,108,57,209,41,68,34,30,187,67,108,
      10,206,41,68,234,114,187,67,108,188,200,41,68,70,199,187,67,108,86,193,41,68,254,26,188,67,108,218,183,41,68,222,109,188,67,108,79,172,41,68,178,191,188,67,108,188,158,41,68,68,16,189,67,108,42,143,41,68,96,95,189,67,108,163,125,41,68,213,172,189,67,
      108,50,106,41,68,112,248,189,67,108,228,84,41,68,2,66,190,67,108,197,61,41,68,92,137,190,67,108,230,36,41,68,78,206,190,67,108,86,10,41,68,174,16,191,67,108,37,238,40,68,81,80,191,67,108,102,208,40,68,14,141,191,67,108,44,177,40,68,192,198,191,67,108,
      140,144,40,68,62,253,191,67,108,153,110,40,68,106,48,192,67,108,105,75,40,68,32,96,192,67,108,20,39,40,68,66,140,192,67,108,176,1,40,68,180,180,192,67,108,84,219,39,68,92,217,192,67,108,27,180,39,68,36,250,192,67,108,29,140,39,68,246,22,193,67,108,115,
      99,39,68,190,47,193,67,108,56,58,39,68,110,68,193,67,108,133,16,39,68,248,84,193,67,108,118,230,38,68,82,97,193,67,108,38,188,38,68,116,105,193,67,108,174,145,38,68,88,109,193,67,108,44,103,38,68,254,108,193,67,108,186,60,38,68,98,104,193,67,108,114,
      18,38,68,138,95,193,67,108,113,232,37,68,123,82,193,67,108,208,190,37,68,62,65,193,67,108,172,149,37,68,220,43,193,67,108,29,109,37,68,101,18,193,67,108,62,69,37,68,232,244,192,67,108,40,30,37,68,120,211,192,67,108,245,247,36,68,43,174,192,67,108,189,
      210,36,68,24,133,192,67,108,151,174,36,68,90,88,192,67,108,155,139,36,68,12,40,192,67,108,224,105,36,68,80,244,191,67,108,122,73,36,68,70,189,191,67,108,126,42,36,68,14,131,191,67,108,1,13,36,68,210,69,191,67,108,22,241,35,68,182,5,191,67,108,204,214,
      35,68,228,194,190,67,108,56,190,35,68,134,125,190,67,108,102,167,35,68,203,53,190,67,108,103,146,35,68,222,235,189,67,108,72,127,35,68,239,159,189,67,108,20,110,35,68,48,82,189,67,108,215,94,35,68,208,2,189,67,108,155,81,35,68,5,178,188,67,108,104,70,
      35,68,1,96,188,67,108,70,61,35,68,248,12,188,67,108,57,54,35,68,32,185,187,67,108,71,49,35,68,175,100,187,67,108,115,46,35,68,218,15,187,67,108,190,45,35,68,216,186,186,67,108,42,47,35,68,223,101,186,67,108,180,50,35,68,38,17,186,67,108,92,56,35,68,226,
      188,185,67,108,29,64,35,68,74,105,185,67,108,242,73,35,68,147,22,185,67,108,213,85,35,68,242,196,184,67,108,190,99,35,68,156,116,184,67,108,166,115,35,68,194,37,184,67,108,128,133,35,68,154,216,183,67,108,66,153,35,68,83,141,183,67,108,224,174,35,68,
      29,68,183,67,108,74,198,35,68,40,253,182,67,108,116,223,35,68,161,184,182,67,108,76,250,35,68,180,118,182,67,108,192,22,36,68,139,55,182,67,108,192,52,36,68,78,251,181,67,108,56,84,36,68,36,194,181,67,108,19,117,36,68,50,140,181,67,108,61,151,36,68,154,
      89,181,67,108,159,186,36,68,124,42,181,67,108,36,223,36,68,246,254,180,67,108,180,4,37,68,38,215,180,67,108,54,43,37,68,34,179,180,67,108,146,82,37,68,4,147,180,67,108,175,122,37,68,223,118,180,67,108,115,163,37,68,198,94,180,67,108,196,204,37,68,200,
      74,180,67,108,136,246,37,68,242,58,180,67,108,164,32,38,68,76,47,180,67,108,254,74,38,68,225,39,180,67,108,120,117,38,68,180,36,180,67,108,0,128,38,68,146,36,180,67,108,0,128,38,68,146,36,180,67,108,0,128,38,68,146,36,180,67,108,127,170,38,68,178,38,
      180,67,108,227,212,38,68,17,45,180,67,108,16,255,38,68,171,55,180,67,108,237,40,39,68,120,70,180,67,108,93,82,39,68,112,89,180,67,108,71,123,39,68,134,112,180,67,108,144,163,39,68,172,139,180,67,108,30,203,39,68,208,170,180,67,108,216,241,39,68,222,205,
      180,67,108,166,23,40,68,192,244,180,67,108,111,60,40,68,94,31,181,67,108,27,96,40,68,154,77,181,67,108,148,130,40,68,88,127,181,67,108,197,163,40,68,122,180,181,67,108,150,195,40,68,218,236,181,67,108,245,225,40,68,88,40,182,67,108,205,254,40,68,203,
      102,182,67,108,13,26,41,68,13,168,182,67,108,162,51,41,68,243,235,182,67,108,126,75,41,68,82,50,183,67,108,142,97,41,68,252,122,183,67,108,200,117,41,68,198,197,183,67,108,28,136,41,68,123,18,184,67,108,128,152,41,68,237,96,184,67,108,232,166,41,68,234,
      176,184,67,108,76,179,41,68,62,2,185,67,108,164,189,41,68,180,84,185,67,108,234,197,41,68,26,168,185,67,108,22,204,41,68,56,252,185,67,108,40,208,41,68,218,80,186,67,108,26,210,41,68,200,165,186,67,108,73,210,41,68,36,201,186,67,108,73,210,41,68,36,201,
      186,67,99,109,73,146,49,68,183,237,146,67,98,73,146,49,68,182,140,156,67,74,195,45,68,166,154,164,67,219,182,40,68,101,117,166,67,108,219,182,40,68,110,219,166,67,108,219,182,40,68,110,219,166,67,108,38,182,40,68,23,20,167,67,108,6,180,40,68,156,76,167,
      67,108,126,176,40,68,218,132,167,67,108,142,171,40,68,170,188,167,67,108,60,165,40,68,234,243,167,67,108,138,157,40,68,119,42,168,67,108,125,148,40,68,45,96,168,67,108,28,138,40,68,234,148,168,67,108,108,126,40,68,142,200,168,67,108,118,113,40,68,246,
      250,168,67,108,66,99,40,68,2,44,169,67,108,217,83,40,68,146,91,169,67,108,68,67,40,68,138,137,169,67,108,142,49,40,68,201,181,169,67,108,195,30,40,68,54,224,169,67,108,239,10,40,68,180,8,170,67,108,30,246,39,68,42,47,170,67,108,93,224,39,68,128,83,170,
      67,108,187,201,39,68,156,117,170,67,108,70,178,39,68,106,149,170,67,108,13,154,39,68,214,178,170,67,108,32,129,39,68,206,205,170,67,108,142,103,39,68,62,230,170,67,108,104,77,39,68,24,252,170,67,108,190,50,39,68,78,15,171,67,108,162,23,39,68,212,31,171,
      67,108,37,252,38,68,158,45,171,67,108,89,224,38,68,166,56,171,67,108,79,196,38,68,226,64,171,67,108,25,168,38,68,78,70,171,67,108,202,139,38,68,230,72,171,67,108,115,111,38,68,168,72,171,67,108,38,83,38,68,150,69,171,67,108,246,54,38,68,178,63,171,67,
      108,246,26,38,68,252,54,171,67,108,54,255,37,68,126,43,171,67,108,200,227,37,68,62,29,171,67,108,190,200,37,68,68,12,171,67,108,41,174,37,68,155,248,170,67,108,27,148,37,68,80,226,170,67,108,163,122,37,68,114,201,170,67,108,211,97,37,68,16,174,170,67,
      108,186,73,37,68,60,144,170,67,108,104,50,37,68,9,112,170,67,108,234,27,37,68,139,77,170,67,108,81,6,37,68,216,40,170,67,108,170,241,36,68,10,2,170,67,108,1,222,36,68,54,217,169,67,108,100,203,36,68,121,174,169,67,108,222,185,36,68,237,129,169,67,108,
      122,169,36,68,176,83,169,67,108,68,154,36,68,220,35,169,67,108,69,140,36,68,148,242,168,67,108,133,127,36,68,245,191,168,67,108,13,116,36,68,32,140,168,67,108,229,105,36,68,54,87,168,67,108,18,97,36,68,88,33,168,67,108,155,89,36,68,172,234,167,67,108,
      132,83,36,68,80,179,167,67,108,208,78,36,68,107,123,167,67,108,132,75,36,68,32,67,167,67,108,162,73,36,68,146,10,167,67,108,36,73,36,68,110,219,166,67,108,36,73,36,68,110,219,166,67,108,36,73,36,68,183,109,162,67,108,36,73,36,68,183,109,162,67,108,218,
      73,36,68,13,53,162,67,108,249,75,36,68,136,252,161,67,108,130,79,36,68,75,196,161,67,108,113,84,36,68,123,140,161,67,108,196,90,36,68,58,85,161,67,108,118,98,36,68,174,30,161,67,108,130,107,36,68,247,232,160,67,108,228,117,36,68,58,180,160,67,108,147,
      129,36,68,150,128,160,67,108,137,142,36,68,46,78,160,67,108,190,156,36,68,34,29,160,67,108,39,172,36,68,146,237,159,67,108,188,188,36,68,154,191,159,67,108,114,206,36,68,90,147,159,67,108,61,225,36,68,238,104,159,67,108,17,245,36,68,112,64,159,67,108,
      226,9,37,68,250,25,159,67,108,163,31,37,68,164,245,158,67,108,69,54,37,68,136,211,158,67,108,186,77,37,68,186,179,158,67,108,243,101,37,68,77,150,158,67,108,224,126,37,68,86,123,158,67,108,114,152,37,68,230,98,158,67,108,153,178,37,68,12,77,158,67,108,
      66,205,37,68,214,57,158,67,108,94,232,37,68,80,41,158,67,108,219,3,38,68,134,27,158,67,108,168,31,38,68,126,16,158,67,108,178,59,38,68,66,8,158,67,108,232,87,38,68,215,2,158,67,108,55,116,38,68,62,0,158,67,108,0,128,38,68,0,0,158,67,108,0,128,38,68,0,
      0,158,67,98,112,41,42,68,0,0,158,67,146,36,45,68,146,4,153,67,146,36,45,68,183,237,146,67,98,146,36,45,68,220,214,140,67,112,41,42,68,110,219,135,67,0,128,38,68,110,219,135,67,98,143,214,34,68,110,219,135,67,110,219,31,68,220,214,140,67,110,219,31,68,
      183,237,146,67,108,110,219,31,68,146,36,149,67,108,110,219,31,68,146,36,149,67,108,184,218,31,68,60,93,149,67,108,153,216,31,68,193,149,149,67,108,16,213,31,68,254,205,149,67,108,33,208,31,68,206,5,150,67,108,206,201,31,68,14,61,150,67,108,28,194,31,
      68,155,115,150,67,108,16,185,31,68,82,169,150,67,108,174,174,31,68,15,222,150,67,108,255,162,31,68,178,17,151,67,108,9,150,31,68,26,68,151,67,108,212,135,31,68,38,117,151,67,108,107,120,31,68,183,164,151,67,108,214,103,31,68,174,210,151,67,108,33,86,
      31,68,238,254,151,67,108,86,67,31,68,91,41,152,67,108,129,47,31,68,217,81,152,67,108,176,26,31,68,79,120,152,67,108,239,4,31,68,164,156,152,67,108,77,238,30,68,192,190,152,67,108,216,214,30,68,143,222,152,67,108,159,190,30,68,251,251,152,67,108,178,165,
      30,68,242,22,153,67,108,32,140,30,68,98,47,153,67,108,250,113,30,68,60,69,153,67,108,80,87,30,68,115,88,153,67,108,52,60,30,68,248,104,153,67,108,183,32,30,68,196,118,153,67,108,235,4,30,68,202,129,153,67,108,225,232,29,68,6,138,153,67,108,171,204,29,
      68,114,143,153,67,108,92,176,29,68,10,146,153,67,108,5,148,29,68,206,145,153,67,108,185,119,29,68,188,142,153,67,108,137,91,29,68,214,136,153,67,108,136,63,29,68,34,128,153,67,108,200,35,29,68,163,116,153,67,108,90,8,29,68,98,102,153,67,108,80,237,28,
      68,104,85,153,67,108,187,210,28,68,192,65,153,67,108,173,184,28,68,116,43,153,67,108,54,159,28,68,150,18,153,67,108,101,134,28,68,52,247,152,67,108,76,110,28,68,96,217,152,67,108,250,86,28,68,45,185,152,67,108,125,64,28,68,176,150,152,67,108,227,42,28,
      68,254,113,152,67,108,60,22,28,68,46,75,152,67,108,147,2,28,68,91,34,152,67,108,246,239,27,68,158,247,151,67,108,112,222,27,68,18,203,151,67,108,13,206,27,68,212,156,151,67,108,214,190,27,68,1,109,151,67,108,215,176,27,68,184,59,151,67,108,23,164,27,
      68,25,9,151,67,108,160,152,27,68,68,213,150,67,108,119,142,27,68,90,160,150,67,108,164,133,27,68,126,106,150,67,108,45,126,27,68,208,51,150,67,108,22,120,27,68,117,252,149,67,108,99,115,27,68,144,196,149,67,108,23,112,27,68,68,140,149,67,108,52,110,27,
      68,182,83,149,67,108,183,109,27,68,146,36,149,67,108,183,109,27,68,146,36,149,67,108,183,109,27,68,183,237,146,67,98,183,109,27,68,176,240,135,67,228,100,32,68,0,0,126,67,0,128,38,68,0,0,126,67,98,28,155,44,68,0,0,126,67,73,146,49,68,176,240,135,67,73,
      146,49,68,183,237,146,67,99,101,0,0 ]);
              
              g.setColour(Colours.white);
              // Try different bounds - centered with more padding and square aspect ratio
              var size = Math.min(obj.area[2], obj.area[3]) - 20; // Make it square
              var x = (obj.area[2] - size) / 2;
              var y = (obj.area[3] - size) / 2;
              g.fillPath(p, [x, y, size, size]);
          }
          else if(obj.type == "Warning") {
              // Add your warning icon path data here
              p.loadFromData([110,109,218,69,49,68,100,245,254,67,108,218,69,49,68,100,245,254,67,108,104,66,49,68,137,4,0,68,108,20,56,49,68,7,142,0,68,108,226,38,49,68,213,22,1,68,108,224,14,49,68,155,158,1,68,108,30,240,48,68,3,37,2,68,108,173,202,48,68,182,169,2,68,108,166,158,
      48,68,95,44,3,68,108,38,108,48,68,172,172,3,68,108,76,51,48,68,73,42,4,68,108,61,244,47,68,231,164,4,68,108,34,175,47,68,55,28,5,68,108,37,100,47,68,236,143,5,68,108,122,19,47,68,189,255,5,68,108,80,189,46,68,98,107,6,68,108,225,97,46,68,150,210,6,68,
      108,102,1,46,68,23,53,7,68,108,31,156,45,68,166,146,7,68,108,75,50,45,68,8,235,7,68,108,46,196,44,68,4,62,8,68,108,14,82,44,68,99,139,8,68,108,53,220,43,68,246,210,8,68,108,238,98,43,68,142,20,9,68,108,134,230,42,68,2,80,9,68,108,78,103,42,68,42,133,
      9,68,108,149,229,41,68,230,179,9,68,108,177,97,41,68,24,220,9,68,108,244,219,40,68,164,253,9,68,108,182,84,40,68,120,24,10,68,108,75,204,39,68,128,44,10,68,108,11,67,39,68,176,57,10,68,108,78,185,38,68,0,64,10,68,108,110,47,38,68,107,63,10,68,108,192,
      165,37,68,243,55,10,68,108,158,28,37,68,156,41,10,68,108,96,148,36,68,110,20,10,68,108,92,13,36,68,121,248,9,68,108,232,135,35,68,204,213,9,68,108,92,4,35,68,127,172,9,68,108,10,131,34,68,173,124,9,68,108,68,4,34,68,115,70,9,68,108,94,136,33,68,244,9,
      9,68,108,164,15,33,68,88,199,8,68,108,102,154,32,68,200,126,8,68,108,238,40,32,68,115,48,8,68,108,132,187,31,68,140,220,7,68,108,112,82,31,68,72,131,7,68,108,242,237,30,68,223,36,7,68,108,76,142,30,68,143,193,6,68,108,188,51,30,68,151,89,6,68,108,124,
      222,29,68,58,237,5,68,108,192,142,29,68,188,124,5,68,108,190,68,29,68,103,8,5,68,108,164,0,29,68,131,144,4,68,108,157,194,28,68,94,21,4,68,108,210,138,28,68,72,151,3,68,108,102,89,28,68,144,22,3,68,108,121,46,28,68,136,147,2,68,108,38,10,28,68,133,14,
      2,68,108,132,236,27,68,221,135,1,68,108,167,213,27,68,228,255,0,68,108,157,197,27,68,242,118,0,68,108,112,188,27,68,190,218,255,67,108,38,186,27,68,4,199,254,67,108,194,190,27,68,104,179,253,67,108,62,202,27,68,154,160,252,67,108,150,220,27,68,74,143,
      251,67,108,188,245,27,68,40,128,250,67,108,159,21,28,68,222,115,249,67,108,46,60,28,68,28,107,248,67,108,78,105,28,68,136,102,247,67,108,226,156,28,68,202,102,246,67,108,202,214,28,68,134,108,245,67,108,224,22,29,68,92,120,244,67,108,252,92,29,68,232,
      138,243,67,108,240,168,29,68,194,164,242,67,108,140,250,29,68,126,198,241,67,108,157,81,30,68,168,240,240,67,108,234,173,30,68,204,35,240,67,108,55,15,31,68,107,96,239,67,108,71,117,31,68,1,167,238,67,108,217,223,31,68,8,248,237,67,108,168,78,32,68,238,
      83,237,67,108,110,193,32,68,26,187,236,67,108,224,55,33,68,241,45,236,67,108,180,177,33,68,204,172,235,67,108,154,46,34,68,254,55,235,67,108,68,174,34,68,209,207,234,67,108,96,48,35,68,137,116,234,67,108,154,180,35,68,96,38,234,67,108,158,58,36,68,134,
      229,233,67,108,21,194,36,68,39,178,233,67,108,170,74,37,68,100,140,233,67,108,5,212,37,68,83,116,233,67,108,206,93,38,68,3,106,233,67,108,244,127,38,68,152,105,233,67,108,244,127,38,68,152,105,233,67,108,244,127,38,68,152,105,233,67,108,202,9,39,68,124,
      112,233,67,108,72,147,39,68,37,133,233,67,108,22,28,40,68,135,167,233,67,108,221,163,40,68,139,215,233,67,108,69,42,41,68,17,21,234,67,108,248,174,41,68,242,95,234,67,108,161,49,42,68,0,184,234,67,108,238,177,42,68,2,29,235,67,108,139,47,43,68,181,142,
      235,67,108,41,170,43,68,211,12,236,67,108,120,33,44,68,9,151,236,67,108,46,149,44,68,2,45,237,67,108,255,4,45,68,91,206,237,67,108,164,112,45,68,173,122,238,67,108,216,215,45,68,140,49,239,67,108,89,58,46,68,127,242,239,67,108,233,151,46,68,15,189,240,
      67,108,74,240,46,68,184,144,241,67,108,70,67,47,68,242,108,242,67,108,165,144,47,68,50,81,243,67,108,56,216,47,68,228,60,244,67,108,208,25,48,68,114,47,245,67,108,68,85,48,68,66,40,246,67,108,108,138,48,68,178,38,247,67,108,40,185,48,68,34,42,248,67,
      108,90,225,48,68,236,49,249,67,108,230,2,49,68,102,61,250,67,108,186,29,49,68,226,75,251,67,108,194,49,49,68,184,92,252,67,108,242,62,49,68,56,111,253,67,108,66,69,49,68,176,130,254,67,108,218,69,49,68,100,245,254,67,108,218,69,49,68,100,245,254,67,99,
      109,244,127,38,68,229,23,201,67,108,244,127,38,68,229,23,201,67,108,223,196,38,68,115,20,201,67,108,158,9,39,68,30,10,201,67,108,5,78,39,68,237,248,200,67,108,232,145,39,68,235,224,200,67,108,28,213,39,68,40,194,200,67,108,118,23,40,68,184,156,200,67,
      108,202,88,40,68,177,112,200,67,108,241,152,40,68,48,62,200,67,108,192,215,40,68,87,5,200,67,108,14,21,41,68,72,198,199,67,108,182,80,41,68,45,129,199,67,108,145,138,41,68,49,54,199,67,108,122,194,41,68,131,229,198,67,108,76,248,41,68,91,143,198,67,108,
      230,43,42,68,236,51,198,67,108,38,93,42,68,113,211,197,67,108,238,139,42,68,43,110,197,67,108,31,184,42,68,86,4,197,67,108,156,225,42,68,57,150,196,67,108,76,8,43,68,24,36,196,67,108,22,44,43,68,64,174,195,67,108,226,76,43,68,249,52,195,67,108,156,106,
      43,68,145,184,194,67,108,48,133,43,68,88,57,194,67,108,142,156,43,68,160,183,193,67,108,167,176,43,68,188,51,193,67,108,109,193,43,68,255,173,192,67,108,214,206,43,68,192,38,192,67,108,218,216,43,68,86,158,191,67,108,115,223,43,68,21,21,191,67,108,155,
      226,43,68,89,139,190,67,108,231,226,43,68,255,81,190,67,108,231,226,43,68,255,81,190,67,108,231,226,43,68,54,21,201,66,108,231,226,43,68,54,21,201,66,108,46,225,43,68,220,237,198,66,108,4,220,43,68,227,199,196,66,108,108,211,43,68,172,164,194,66,108,
      106,199,43,68,147,133,192,66,108,9,184,43,68,244,107,190,66,108,81,165,43,68,40,89,188,66,108,77,143,43,68,129,78,186,66,108,12,118,43,68,79,77,184,66,108,160,89,43,68,218,86,182,66,108,24,58,43,68,99,108,180,66,108,139,23,43,68,36,143,178,66,108,13,
      242,42,68,79,192,176,66,108,182,201,42,68,11,1,175,66,108,162,158,42,68,118,82,173,66,108,234,112,42,68,167,181,171,66,108,173,64,42,68,162,43,170,66,108,9,14,42,68,101,181,168,66,108,32,217,41,68,222,83,167,66,108,17,162,41,68,242,7,166,66,108,0,105,
      41,68,114,210,164,66,108,20,46,41,68,38,180,163,66,108,112,241,40,68,197,173,162,66,108,60,179,40,68,248,191,161,66,108,160,115,40,68,86,235,160,66,108,196,50,40,68,101,48,160,66,108,210,240,39,68,160,143,159,66,108,244,173,39,68,109,9,159,66,108,84,
      106,39,68,32,158,158,66,108,30,38,39,68,0,78,158,66,108,127,225,38,68,64,25,158,66,108,161,156,38,68,0,0,158,66,108,176,87,38,68,81,2,158,66,108,218,18,38,68,50,32,158,66,108,72,206,37,68,144,89,158,66,108,42,138,37,68,70,174,158,66,108,168,70,37,68,
      29,30,159,66,108,238,3,37,68,208,168,159,66,108,40,194,36,68,2,78,160,66,108,126,129,36,68,77,13,161,66,108,28,66,36,68,53,230,161,66,108,40,4,36,68,47,216,162,66,108,204,199,35,68,161,226,163,66,108,44,141,35,68,225,4,165,66,108,112,84,35,68,52,62,166,
      66,108,188,29,35,68,210,141,167,66,108,49,233,34,68,227,242,168,66,108,242,182,34,68,134,108,170,66,108,32,135,34,68,198,249,171,66,108,216,89,34,68,165,153,173,66,108,56,47,34,68,26,75,175,66,108,90,7,34,68,17,13,177,66,108,88,226,33,68,104,222,178,
      66,108,76,192,33,68,245,189,180,66,108,72,161,33,68,135,170,182,66,108,99,133,33,68,224,162,184,66,108,173,108,33,68,192,165,186,66,108,54,87,33,68,221,177,188,66,108,13,69,33,68,232,197,190,66,108,60,54,33,68,138,224,192,66,108,206,42,33,68,109,0,195,
      66,108,200,34,33,68,51,36,197,66,108,50,30,33,68,128,74,199,66,108,1,29,33,68,54,21,201,66,108,1,29,33,68,54,21,201,66,108,1,29,33,68,255,81,190,67,108,1,29,33,68,255,81,190,67,108,186,30,33,68,214,219,190,67,108,228,35,33,68,84,101,191,67,108,124,44,
      33,68,34,238,191,67,108,126,56,33,68,232,117,192,67,108,223,71,33,68,80,252,192,67,108,152,90,33,68,3,129,193,67,108,155,112,33,68,173,3,194,67,108,220,137,33,68,250,131,194,67,108,72,166,33,68,151,1,195,67,108,208,197,33,68,53,124,195,67,108,94,232,
      33,68,133,243,195,67,108,220,13,34,68,58,103,196,67,108,50,54,34,68,11,215,196,67,108,71,97,34,68,177,66,197,67,108,254,142,34,68,228,169,197,67,108,60,191,34,68,101,12,198,67,108,224,241,34,68,244,105,198,67,108,202,38,35,68,86,194,198,67,108,216,93,
      35,68,82,21,199,67,108,232,150,35,68,177,98,199,67,108,212,209,35,68,67,170,199,67,108,120,14,36,68,220,235,199,67,108,172,76,36,68,80,39,200,67,108,72,140,36,68,119,92,200,67,108,36,205,36,68,52,139,200,67,108,22,15,37,68,100,179,200,67,108,245,81,37,
      68,241,212,200,67,108,148,149,37,68,197,239,200,67,108,202,217,37,68,205,3,201,67,108,106,30,38,68,253,16,201,67,108,72,99,38,68,77,23,201,67,108,244,127,38,68,229,23,201,67,108,244,127,38,68,229,23,201,67,99,101,0,0]);
              
              g.setColour(Colours.white);
              var size = Math.min(obj.area[2], obj.area[3]) - 20;
              var x = (obj.area[2] - size) / 2;
              var y = (obj.area[3] - size) / 2;
              g.fillPath(p, [x, y, size, size]);
          }
          else if(obj.type == "Info") {
              // Add your info icon path data here
              p.loadFromData([110,109,37,127,38,68,34,253,63,67,108,37,127,38,68,34,253,63,67,108,119,242,36,68,207,36,64,67,108,200,102,35,68,188,155,64,67,108,19,221,33,68,159,97,65,67,108,85,86,32,68,247,117,66,67,108,137,211,30,68,21,216,67,67,108,164,85,29,68,21,135,69,67,108,
      157,221,27,68,228,129,71,67,108,99,108,26,68,62,199,73,67,108,226,2,25,68,174,85,76,67,108,3,162,23,68,146,43,79,67,108,166,74,22,68,26,71,82,67,108,168,253,20,68,71,166,85,67,108,221,187,19,68,243,70,89,67,108,20,134,18,68,202,38,93,67,108,19,93,17,
      68,82,67,97,67,108,151,65,16,68,234,153,101,67,108,86,52,15,68,204,39,106,67,108,253,53,14,68,12,234,110,67,108,46,71,13,68,160,221,115,67,108,130,104,12,68,91,255,120,67,108,135,154,11,68,246,75,126,67,108,194,221,10,68,6,224,129,67,108,170,50,10,68,
      17,172,132,67,108,174,153,9,68,81,136,135,67,108,48,19,9,68,241,114,138,67,108,133,159,8,68,20,106,141,67,108,247,62,8,68,212,107,144,67,108,197,241,7,68,68,118,147,67,108,31,184,7,68,115,135,150,67,108,43,146,7,68,106,157,153,67,108,1,128,7,68,47,182,
      156,67,108,172,129,7,68,199,207,159,67,108,43,151,7,68,55,232,162,67,108,113,192,7,68,131,253,165,67,108,99,253,7,68,180,13,169,67,108,218,77,8,68,208,22,172,67,108,163,177,8,68,234,22,175,67,108,126,40,9,68,20,12,178,67,108,31,178,9,68,106,244,180,67,
      108,45,78,10,68,17,206,183,67,108,70,252,10,68,53,151,186,67,108,248,187,11,68,14,78,189,67,108,203,140,12,68,223,240,191,67,108,56,110,13,68,248,125,194,67,108,175,95,14,68,184,243,196,67,108,149,96,15,68,140,80,199,67,108,70,112,16,68,240,146,201,67,
      108,21,142,17,68,115,185,203,67,108,74,185,18,68,180,194,205,67,108,38,241,19,68,102,173,207,67,108,225,52,21,68,78,120,209,67,108,172,131,22,68,72,34,211,67,108,178,220,23,68,66,170,212,67,108,21,63,25,68,66,15,214,67,108,242,169,26,68,98,80,215,67,
      108,97,28,28,68,216,108,216,67,108,118,149,29,68,234,99,217,67,108,62,20,31,68,254,52,218,67,108,198,151,32,68,138,223,218,67,108,21,31,34,68,36,99,219,67,108,48,169,35,68,118,191,219,67,108,28,53,37,68,68,244,219,67,108,219,193,38,68,112,1,220,67,108,
      112,78,40,68,238,230,219,67,108,220,217,41,68,210,164,219,67,108,34,99,43,68,66,59,219,67,108,72,233,44,68,134,170,218,67,108,82,107,46,68,248,242,217,67,108,75,232,47,68,14,21,217,67,108,62,95,49,68,88,17,216,67,108,60,207,50,68,120,232,214,67,108,89,
      55,52,68,48,155,213,67,108,175,150,53,68,82,42,212,67,108,93,236,54,68,204,150,210,67,108,135,55,56,68,161,225,208,67,108,92,119,57,68,231,11,207,67,108,12,171,58,68,202,22,205,67,108,213,209,59,68,141,3,203,67,108,248,234,60,68,130,211,200,67,108,196,
      245,61,68,18,136,198,67,108,139,241,62,68,176,34,196,67,108,174,221,63,68,232,164,193,67,108,150,185,64,68,81,16,191,67,108,182,132,65,68,146,102,188,67,108,138,62,66,68,96,169,185,67,108,158,230,66,68,122,218,182,67,108,133,124,67,68,174,251,179,67,
      108,223,255,67,68,209,14,177,67,108,88,112,68,68,194,21,174,67,108,169,205,68,68,104,18,171,67,108,149,23,69,68,178,6,168,67,108,238,77,69,68,146,244,164,67,108,143,112,69,68,254,221,161,67,108,100,127,69,68,240,196,158,67,108,0,128,69,68,72,0,158,67,
      108,0,128,69,68,72,0,158,67,108,0,128,69,68,72,0,158,67,108,167,117,69,68,28,230,154,67,108,120,87,69,68,246,205,151,67,108,136,37,69,68,212,185,148,67,108,246,223,68,68,170,171,145,67,108,238,134,68,68,111,165,142,67,108,169,26,68,68,18,169,139,67,108,
      110,155,67,68,125,184,136,67,108,140,9,67,68,143,213,133,67,108,98,101,66,68,36,2,131,67,108,88,175,65,68,8,64,128,67,108,228,231,64,68,2,34,123,67,108,132,15,64,68,138,237,117,67,108,195,38,63,68,254,229,112,67,108,54,46,62,68,150,14,108,67,108,124,
      38,61,68,108,106,103,67,108,63,16,60,68,118,252,98,67,108,47,236,58,68,140,199,94,67,108,7,187,57,68,93,206,90,67,108,140,125,56,68,116,19,87,67,108,136,52,55,68,54,153,83,67,108,206,224,53,68,220,97,80,67,108,54,131,52,68,115,111,77,67,108,162,28,51,
      68,224,195,74,67,108,245,173,49,68,214,96,72,67,108,28,56,48,68,223,71,70,67,108,4,188,46,68,80,122,68,67,108,162,58,45,68,82,249,66,67,108,235,180,43,68,218,197,65,67,108,218,43,42,68,173,224,64,67,108,106,160,40,68,94,74,64,67,108,150,19,39,68,78,3,
      64,67,108,37,127,38,68,33,253,63,67,108,37,127,38,68,34,253,63,67,99,109,37,127,38,68,228,119,210,67,108,36,127,38,68,228,119,210,67,108,126,47,37,68,26,103,210,67,108,174,224,35,68,200,52,210,67,108,140,147,34,68,16,225,209,67,108,236,72,33,68,38,108,
      209,67,108,161,1,32,68,85,214,208,67,108,125,190,30,68,252,31,208,67,108,80,128,29,68,144,73,207,67,108,228,71,28,68,156,83,206,67,108,1,22,27,68,188,62,205,67,108,107,235,25,68,160,11,204,67,108,226,200,24,68,15,187,202,67,108,30,175,23,68,222,77,201,
      67,108,214,158,22,68,248,196,199,67,108,181,152,21,68,88,33,198,67,108,101,157,20,68,11,100,196,67,108,134,173,19,68,46,142,194,67,108,178,201,18,68,236,160,192,67,108,122,242,17,68,130,157,190,67,108,104,40,17,68,57,133,188,67,108,254,107,16,68,105,
      89,186,67,108,179,189,15,68,118,27,184,67,108,248,29,15,68,206,204,181,67,108,51,141,14,68,236,110,179,67,108,192,11,14,68,82,3,177,67,108,243,153,13,68,142,139,174,67,108,19,56,13,68,53,9,172,67,108,96,230,12,68,224,125,169,67,108,14,165,12,68,50,235,
      166,67,108,71,116,12,68,206,82,164,67,108,42,84,12,68,95,182,161,67,108,203,68,12,68,144,23,159,67,108,52,70,12,68,14,120,156,67,108,101,88,12,68,136,217,153,67,108,82,123,12,68,169,61,151,67,108,228,174,12,68,30,166,148,67,108,251,242,12,68,142,20,146,
      67,108,106,71,13,68,159,138,143,67,108,252,171,13,68,241,9,141,67,108,113,32,14,68,29,148,138,67,108,126,164,14,68,183,42,136,67,108,206,55,15,68,74,207,133,67,108,3,218,15,68,87,131,131,67,108,182,138,16,68,88,72,129,67,108,117,73,17,68,112,63,126,67,
      108,199,21,18,68,180,21,122,67,108,40,239,18,68,39,22,118,67,108,14,213,19,68,86,67,114,67,108,228,198,20,68,180,159,110,67,108,18,196,21,68,150,45,107,67,108,244,203,22,68,47,239,103,67,108,226,221,23,68,147,230,100,67,108,44,249,24,68,178,21,98,67,
      108,30,29,26,68,91,126,95,67,108,252,72,27,68,54,34,93,67,108,6,124,28,68,196,2,91,67,108,121,181,29,68,98,33,89,67,108,139,244,30,68,68,127,87,67,108,112,56,32,68,118,29,86,67,108,90,128,33,68,218,252,84,67,108,118,203,34,68,40,30,84,67,108,240,24,36,
      68,239,129,83,67,108,243,103,37,68,148,40,83,67,108,168,183,38,68,77,18,83,67,108,58,7,40,68,44,63,83,67,108,209,85,41,68,18,175,83,67,108,151,162,42,68,184,97,84,67,108,183,236,43,68,172,86,85,67,108,94,51,45,68,82,141,86,67,108,186,117,46,68,226,4,
      88,67,108,254,178,47,68,107,188,89,67,108,95,234,48,68,213,178,91,67,108,21,27,50,68,222,230,93,67,108,93,68,51,68,30,87,96,67,108,122,101,52,68,4,2,99,67,108,178,125,53,68,221,229,101,67,108,81,140,54,68,206,0,105,67,108,171,144,55,68,218,80,108,67,
      108,25,138,56,68,228,211,111,67,108,252,119,57,68,172,135,115,67,108,187,89,58,68,212,105,119,67,108,197,46,59,68,222,119,123,67,108,148,246,59,68,52,175,127,67,108,165,176,60,68,145,6,130,67,108,132,92,61,68,111,71,132,67,108,193,249,61,68,194,152,134,
      67,108,248,135,62,68,15,249,136,67,108,205,6,63,68,208,102,139,67,108,241,117,63,68,120,224,141,67,108,28,213,63,68,114,100,144,67,108,16,36,64,68,33,241,146,67,108,156,98,64,68,228,132,149,67,108,150,144,64,68,19,30,152,67,108,226,173,64,68,6,187,154,
      67,108,110,186,64,68,18,90,157,67,108,242,186,64,68,72,0,158,67,108,242,186,64,68,72,0,158,67,108,242,186,64,68,72,0,158,67,108,42,178,64,68,83,160,160,67,108,152,152,64,68,166,62,163,67,108,79,110,64,68,149,217,165,67,108,105,51,64,68,116,111,168,67,
      108,12,232,63,68,156,254,170,67,108,102,140,63,68,106,133,173,67,108,182,32,63,68,64,2,176,67,108,60,165,62,68,134,115,178,67,108,75,26,62,68,174,215,180,67,108,58,128,61,68,46,45,183,67,108,108,215,60,68,135,114,185,67,108,76,32,60,68,72,166,187,67,
      108,81,91,59,68,6,199,189,67,108,248,136,58,68,100,211,191,67,108,200,169,57,68,22,202,193,67,108,78,190,56,68,214,169,195,67,108,36,199,55,68,115,113,197,67,108,230,196,54,68,202,31,199,67,108,57,184,53,68,199,179,200,67,108,202,161,52,68,104,44,202,
      67,108,74,130,51,68,187,136,203,67,108,114,90,50,68,225,199,204,67,108,255,42,49,68,16,233,205,67,108,179,244,47,68,140,235,206,67,108,85,184,46,68,178,206,207,67,108,175,118,45,68,240,145,208,67,108,143,48,44,68,200,52,209,67,108,197,230,42,68,210,182,
      209,67,108,37,154,41,68,188,23,210,67,108,132,75,40,68,72,87,210,67,108,182,251,38,68,76,117,210,67,108,36,127,38,68,228,119,210,67,108,37,127,38,68,228,119,210,67,99,109,51,68,43,68,156,158,186,67,108,51,68,43,68,156,158,186,67,108,112,67,43,68,164,
      219,186,67,108,38,65,43,68,131,24,187,67,108,88,61,43,68,22,85,187,67,108,7,56,43,68,50,145,187,67,108,56,49,43,68,180,204,187,67,108,238,40,43,68,118,7,188,67,108,47,31,43,68,79,65,188,67,108,1,20,43,68,28,122,188,67,108,107,7,43,68,186,177,188,67,108,
      118,249,42,68,4,232,188,67,108,41,234,42,68,215,28,189,67,108,144,217,42,68,18,80,189,67,108,180,199,42,68,148,129,189,67,108,161,180,42,68,60,177,189,67,108,99,160,42,68,238,222,189,67,108,8,139,42,68,139,10,190,67,108,156,116,42,68,247,51,190,67,108,
      46,93,42,68,25,91,190,67,108,206,68,42,68,214,127,190,67,108,138,43,42,68,24,162,190,67,108,116,17,42,68,200,193,190,67,108,154,246,41,68,211,222,190,67,108,17,219,41,68,38,249,190,67,108,230,190,41,68,175,16,191,67,108,47,162,41,68,96,37,191,67,108,
      253,132,41,68,44,55,191,67,108,98,103,41,68,6,70,191,67,108,113,73,41,68,230,81,191,67,108,62,43,41,68,196,90,191,67,108,220,12,41,68,156,96,191,67,108,94,238,40,68,104,99,191,67,108,172,225,40,68,170,99,191,67,108,172,225,40,68,170,99,191,67,108,172,
      225,40,68,170,99,191,67,108,165,164,40,68,158,96,191,67,108,197,103,40,68,120,87,191,67,108,51,43,40,68,63,72,191,67,108,22,239,39,68,252,50,191,67,108,148,179,39,68,191,23,191,67,108,211,120,39,68,152,246,190,67,108,250,62,39,68,156,207,190,67,108,44,
      6,39,68,228,162,190,67,108,142,206,38,68,140,112,190,67,108,68,152,38,68,182,56,190,67,108,113,99,38,68,132,251,189,67,108,54,48,38,68,30,185,189,67,108,181,254,37,68,174,113,189,67,108,12,207,37,68,99,37,189,67,108,90,161,37,68,108,212,188,67,108,190,
      117,37,68,254,126,188,67,108,81,76,37,68,79,37,188,67,108,48,37,37,68,153,199,187,67,108,114,0,37,68,24,102,187,67,108,48,222,36,68,8,1,187,67,108,128,190,36,68,174,152,186,67,108,117,161,36,68,74,45,186,67,108,35,135,36,68,32,191,185,67,108,154,111,
      36,68,121,78,185,67,108,232,90,36,68,156,219,184,67,108,29,73,36,68,209,102,184,67,108,66,58,36,68,100,240,183,67,108,98,46,36,68,162,120,183,67,108,132,37,36,68,214,255,182,67,108,173,31,36,68,76,134,182,67,108,225,28,36,68,86,12,182,67,108,158,28,36,
      68,142,217,181,67,108,158,28,36,68,142,217,181,67,108,158,28,36,68,72,0,158,67,108,158,28,36,68,72,0,158,67,108,26,254,35,68,194,254,157,67,108,170,223,35,68,46,250,157,67,108,97,193,35,68,146,242,157,67,108,83,163,35,68,241,231,157,67,108,146,133,35,
      68,82,218,157,67,108,50,104,35,68,190,201,157,67,108,68,75,35,68,64,182,157,67,108,222,46,35,68,228,159,157,67,108,15,19,35,68,184,134,157,67,108,234,247,34,68,206,106,157,67,108,128,221,34,68,52,76,157,67,108,227,195,34,68,2,43,157,67,108,34,171,34,
      68,74,7,157,67,108,78,147,34,68,36,225,156,67,108,117,124,34,68,169,184,156,67,108,166,102,34,68,242,141,156,67,108,240,81,34,68,26,97,156,67,108,96,62,34,68,63,50,156,67,108,1,44,34,68,126,1,156,67,108,224,26,34,68,247,206,155,67,108,8,11,34,68,202,
      154,155,67,108,130,252,33,68,24,101,155,67,108,89,239,33,68,3,46,155,67,108,148,227,33,68,175,245,154,67,108,60,217,33,68,64,188,154,67,108,86,208,33,68,219,129,154,67,108,233,200,33,68,165,70,154,67,108,249,194,33,68,196,10,154,67,108,138,190,33,68,
      94,206,153,67,108,158,187,33,68,153,145,153,67,108,56,186,33,68,158,84,153,67,108,89,186,33,68,146,23,153,67,108,0,188,33,68,156,218,152,67,108,46,191,33,68,230,157,152,67,108,222,195,33,68,147,97,152,67,108,14,202,33,68,204,37,152,67,108,187,209,33,
      68,182,234,151,67,108,224,218,33,68,120,176,151,67,108,118,229,33,68,54,119,151,67,108,119,241,33,68,22,63,151,67,108,220,254,33,68,58,8,151,67,108,155,13,34,68,199,210,150,67,108,171,29,34,68,222,158,150,67,108,2,47,34,68,161,108,150,67,108,149,65,34,
      68,48,60,150,67,108,88,85,34,68,170,13,150,67,108,62,106,34,68,44,225,149,67,108,59,128,34,68,211,182,149,67,108,63,151,34,68,186,142,149,67,108,60,175,34,68,252,104,149,67,108,35,200,34,68,174,69,149,67,108,228,225,34,68,234,36,149,67,108,110,252,34,
      68,195,6,149,67,108,177,23,35,68,77,235,148,67,108,155,51,35,68,154,210,148,67,108,26,80,35,68,184,188,148,67,108,27,109,35,68,182,169,148,67,108,141,138,35,68,162,153,148,67,108,93,168,35,68,131,140,148,67,108,118,198,35,68,100,130,148,67,108,199,228,
      35,68,74,123,148,67,108,60,3,36,68,58,119,148,67,108,158,28,36,68,44,118,148,67,108,158,28,36,68,44,118,148,67,108,158,28,36,68,44,118,148,67,108,165,89,36,68,57,121,148,67,108,133,150,36,68,95,130,148,67,108,22,211,36,68,152,145,148,67,108,52,15,37,
      68,218,166,148,67,108,182,74,37,68,23,194,148,67,108,118,133,37,68,62,227,148,67,108,80,191,37,68,59,10,149,67,108,30,248,37,68,243,54,149,67,108,188,47,38,68,74,105,149,67,108,5,102,38,68,33,161,149,67,108,216,154,38,68,82,222,149,67,108,20,206,38,68,
      184,32,150,67,108,149,255,38,68,40,104,150,67,108,62,47,39,68,116,180,150,67,108,239,92,39,68,106,5,151,67,108,140,136,39,68,216,90,151,67,108,249,177,39,68,136,180,151,67,108,26,217,39,68,62,18,152,67,108,215,253,39,68,191,115,152,67,108,25,32,40,68,
      206,216,152,67,108,202,63,40,68,40,65,153,67,108,212,92,40,68,140,172,153,67,108,38,119,40,68,182,26,154,67,108,176,142,40,68,93,139,154,67,108,97,163,40,68,58,254,154,67,108,44,181,40,68,5,115,155,67,108,7,196,40,68,113,233,155,67,108,232,207,40,68,
      52,97,156,67,108,198,216,40,68,0,218,156,67,108,157,222,40,68,136,83,157,67,108,104,225,40,68,127,205,157,67,108,172,225,40,68,72,0,158,67,108,172,225,40,68,72,0,158,67,108,172,225,40,68,142,217,181,67,108,172,225,40,68,142,217,181,67,108,47,0,41,68,
      21,219,181,67,108,159,30,41,68,168,223,181,67,108,232,60,41,68,68,231,181,67,108,247,90,41,68,230,241,181,67,108,184,120,41,68,132,255,181,67,108,24,150,41,68,24,16,182,67,108,5,179,41,68,150,35,182,67,108,108,207,41,68,242,57,182,67,108,59,235,41,68,
      30,83,182,67,108,96,6,42,68,9,111,182,67,108,201,32,42,68,162,141,182,67,108,102,58,42,68,212,174,182,67,108,40,83,42,68,141,210,182,67,108,252,106,42,68,178,248,182,67,108,212,129,42,68,46,33,183,67,108,163,151,42,68,229,75,183,67,108,89,172,42,68,188,
      120,183,67,108,234,191,42,68,151,167,183,67,108,72,210,42,68,88,216,183,67,108,106,227,42,68,224,10,184,67,108,66,243,42,68,13,63,184,67,108,199,1,43,68,191,116,184,67,108,240,14,43,68,212,171,184,67,108,181,26,43,68,39,228,184,67,108,13,37,43,68,150,
      29,185,67,108,243,45,43,68,250,87,185,67,108,96,53,43,68,49,147,185,67,108,80,59,43,68,18,207,185,67,108,192,63,43,68,120,11,186,67,108,172,66,43,68,60,72,186,67,108,17,68,43,68,56,133,186,67,108,51,68,43,68,156,158,186,67,108,51,68,43,68,156,158,186,
      67,99,109,23,186,33,68,122,196,131,67,108,23,186,33,68,122,196,131,67,108,60,187,33,68,240,104,131,67,108,170,190,33,68,160,13,131,67,108,95,196,33,68,197,178,130,67,108,88,204,33,68,153,88,130,67,108,143,214,33,68,86,255,129,67,108,254,226,33,68,53,
      167,129,67,108,156,241,33,68,110,80,129,67,108,98,2,34,68,58,251,128,67,108,66,21,34,68,205,167,128,67,108,51,42,34,68,94,86,128,67,108,37,65,34,68,33,7,128,67,108,12,90,34,68,146,116,127,67,108,214,116,34,68,14,224,126,67,108,114,145,34,68,19,81,126,
      67,108,207,175,34,68,254,199,125,67,108,216,207,34,68,40,69,125,67,108,122,241,34,68,226,200,124,67,108,158,20,35,68,126,83,124,67,108,46,57,35,68,70,229,123,67,108,20,95,35,68,128,126,123,67,108,54,134,35,68,112,31,123,67,108,124,174,35,68,80,200,122,
      67,108,203,215,35,68,88,121,122,67,108,10,2,36,68,189,50,122,67,108,29,45,36,68,170,244,121,67,108,233,88,36,68,72,191,121,67,108,82,133,36,68,184,146,121,67,108,59,178,36,68,22,111,121,67,108,136,223,36,68,124,84,121,67,108,27,13,37,68,247,66,121,67,
      108,216,58,37,68,150,58,121,67,108,160,104,37,68,90,59,121,67,108,88,150,37,68,71,69,121,67,108,225,195,37,68,84,88,121,67,108,31,241,37,68,118,116,121,67,108,245,29,38,68,152,153,121,67,108,69,74,38,68,168,199,121,67,108,244,117,38,68,131,254,121,67,
      108,229,160,38,68,8,62,122,67,108,254,202,38,68,16,134,122,67,108,34,244,38,68,106,214,122,67,108,56,28,39,68,229,46,123,67,108,39,67,39,68,70,143,123,67,108,212,104,39,68,82,247,123,67,108,42,141,39,68,196,102,124,67,108,14,176,39,68,86,221,124,67,108,
      108,209,39,68,188,90,125,67,108,47,241,39,68,166,222,125,67,108,66,15,40,68,191,104,126,67,108,144,43,40,68,175,248,126,67,108,10,70,40,68,26,142,127,67,108,158,94,40,68,80,20,128,67,108,59,117,40,68,238,99,128,67,108,211,137,40,68,183,181,128,67,108,
      90,156,40,68,116,9,129,67,108,195,172,40,68,240,94,129,67,108,4,187,40,68,245,181,129,67,108,20,199,40,68,75,14,130,67,108,234,208,40,68,185,103,130,67,108,130,216,40,68,7,194,130,67,108,213,221,40,68,250,28,131,67,108,225,224,40,68,88,120,131,67,108,
      164,225,40,68,230,211,131,67,108,28,224,40,68,107,47,132,67,108,75,220,40,68,172,138,132,67,108,52,214,40,68,109,229,132,67,108,218,205,40,68,118,63,133,67,108,67,195,40,68,140,152,133,67,108,118,182,40,68,118,240,133,67,108,122,167,40,68,254,70,134,
      67,108,88,150,40,68,233,155,134,67,108,30,131,40,68,4,239,134,67,108,214,109,40,68,23,64,135,67,108,142,86,40,68,240,142,135,67,108,86,61,40,68,93,219,135,67,108,60,34,40,68,43,37,136,67,108,82,5,40,68,44,108,136,67,108,172,230,39,68,51,176,136,67,108,
      93,198,39,68,20,241,136,67,108,120,164,39,68,164,46,137,67,108,21,129,39,68,191,104,137,67,108,74,92,39,68,61,159,137,67,108,45,54,39,68,252,209,137,67,108,216,14,39,68,219,0,138,67,108,100,230,38,68,189,43,138,67,108,234,188,38,68,134,82,138,67,108,
      134,146,38,68,30,117,138,67,108,82,103,38,68,109,147,138,67,108,105,59,38,68,97,173,138,67,108,233,14,38,68,234,194,138,67,108,237,225,37,68,248,211,138,67,108,146,180,37,68,130,224,138,67,108,246,134,37,68,128,232,138,67,108,54,89,37,68,236,235,138,
      67,108,225,77,37,68,16,236,138,67,108,225,77,37,68,16,236,138,67,108,225,77,37,68,16,236,138,67,108,28,32,37,68,198,233,138,67,108,116,242,36,68,233,226,138,67,108,6,197,36,68,126,215,138,67,108,241,151,36,68,141,199,138,67,108,79,107,36,68,31,179,138,
      67,108,63,63,36,68,66,154,138,67,108,220,19,36,68,4,125,138,67,108,65,233,35,68,122,91,138,67,108,139,191,35,68,185,53,138,67,108,212,150,35,68,216,11,138,67,108,53,111,35,68,243,221,137,67,108,201,72,35,68,38,172,137,67,108,168,35,35,68,146,118,137,
      67,108,233,255,34,68,90,61,137,67,108,164,221,34,68,161,0,137,67,108,238,188,34,68,142,192,136,67,108,221,157,34,68,75,125,136,67,108,132,128,34,68,2,55,136,67,108,246,100,34,68,225,237,135,67,108,69,75,34,68,22,162,135,67,108,128,51,34,68,210,83,135,
      67,108,184,29,34,68,71,3,135,67,108,250,9,34,68,168,176,134,67,108,84,248,33,68,42,92,134,67,108,207,232,33,68,4,6,134,67,108,118,219,33,68,108,174,133,67,108,82,208,33,68,155,85,133,67,108,106,199,33,68,201,251,132,67,108,195,192,33,68,48,161,132,67,
      108,98,188,33,68,9,70,132,67,108,73,186,33,68,144,234,131,67,108,23,186,33,68,122,196,131,67,108,23,186,33,68,122,196,131,67,99,101,0,0]);
              
              g.setColour(Colours.white);
              var size = Math.min(obj.area[2], obj.area[3]) - 20;
              var x = (obj.area[2] - size) / 2;
              var y = (obj.area[3] - size) / 2;
              g.fillPath(p, [x, y, size, size]);
          }
      });
      
      laf.registerFunction("drawComboBox", function(g, obj)
      {
          g.setColour(Colours.black);
          g.fillRoundedRectangle(obj.area, 1.0);
          g.setColour(Colours.darkgrey);
          g.drawRect(obj.area, 1.0);
          g.setColour(Colours.withAlpha(obj.textColour, (obj.enabled && obj.active) ? 1.0 : 0.2));
          g.setFont("Arial", 10.0);
         
          var a = obj.area;
          g.drawAlignedText(obj.text, [a[0] + 10, a[1], a[2]-10, a[3]], "left");
          var h = a[3];
          g.setColour(Colours.darkgrey);
          g.fillTriangle([a[0] + a[2] - h/3 - 10, a[1] + h/3, h/3, h/3], Math.PI);
      });
      
      
      
      
      
      laf.registerFunction("drawPopupMenuItem", function(g, obj)
      {
          var a = obj.area;
          var h = a[3];
          
          if(obj.isSeparator)
          {
              g.setColour(Colours.white);
              g.drawLine(a[0]+10, a[0] + a[2]-10, a[1] + a[3]/2, a[1] + a[3]/2, 1.0);
              return;
          }
          
          if(obj.isTicked)
          {
              g.setColour(Colours.black);
              g.fillEllipse([a[0] + h/3, a[1] + h/3, h/3, h/3]);
          }
          
          if(obj.isHighlighted)
          {
              g.setColour(0x22FFFFFF);
              g.fillRect(obj.area);
          }
          
          g.setFont("Arial", 10.0);
          g.setColour(Colours.white);
          g.drawAlignedText(obj.text, [a[0] + h, a[1], a[2] - h, a[3]], "left");
      });
      
      
      posted in Scripting
      C
      cassettedeath
    • RE: Goals for 2026? 🚀

      Planning to launch three VST instruments next month… Pretty much at the last user testing/website final touches and marketing content phase.

      After that I’m really keen to explore easy to use/accessible plug in concepts. I think HISE provides heaps of potential for that.

      Then expansions and a drum loop plug in which is in the experimental phase. (Esp with time stretching)

      Excited!

      posted in General Questions
      C
      cassettedeath
    • RE: Restoring properties with DAW session

      @David-Healey ahhh! Okay - I’ll probably implement a lock button so the user can opt in/out of the save in preset UI jumping 😂

      And a seperate button to close the panel so it doesn’t jump.

      Oh… and THEN I’ll need to implement your random value script before release 😁

      HISE feels like whack-a-mole sometimes!

      posted in General Questions
      C
      cassettedeath
    • RE: Restoring properties with DAW session

      @David-Healey the panel flashes sometimes

      posted in General Questions
      C
      cassettedeath
    • RE: Restoring properties with DAW session

      @David-Healey hmm.. Still glitchy for me.

      Are you using the latest commit?

      posted in General Questions
      C
      cassettedeath
    • RE: Restoring properties with DAW session

      @David-Healey How did you get it work on Mac and windows?

      Maybe I should wait and see if there’s a new commit soon or try a different commit. Still glitchy to and it’s the last thing I need to fix before releasing the plug in :/

      posted in General Questions
      C
      cassettedeath
    • RE: LGPL Compliance for Commercial Faust Plugins in HISE

      @dannytaurus

      Just saw this in the oscillators lib.

      EXCEPTION TO THE LGPL LICENSE : As a special exception, you may create a
      larger FAUST program which directly or indirectly imports this library
      file and still distribute the compiled code generated by the FAUST
      compiler, or a modified version of this compiled code, under your own
      copyright and license. This EXCEPTION TO THE LGPL LICENSE explicitly
      grants you the right to freely choose the license for the resulting
      compiled code. In particular the resulting compiled code has no obligation
      to be LGPL or GPL. For example you are free to choose a commercial or
      closed source license or any other license if you decide so.

      posted in Faust Development
      C
      cassettedeath
    • RE: LGPL Compliance for Commercial Faust Plugins in HISE

      @dannytaurus

      Dang it!

      Thank you for the clarification.

      posted in Faust Development
      C
      cassettedeath
    • LGPL Compliance for Commercial Faust Plugins in HISE

      Hi everyone,

      I'm developing commercial audio plugins using HISE with Faust integration. My Faust code uses standard library functions like:

      • (oscillators.lib - LGPL)
      • (filters.lib - LGPL)
      • (noises.lib - LGPL)
      • (delays.lib - LGPL)
      • (reverbs.lib - MIT)
      • (signals.lib - MIT)

      I understand that when HISE compiles Faust code, the generated C++ is statically linked into the plugin binary. I want to ensure I'm LGPL-compliant for commercial distribution.

      My questions:

      1. Does HISE's Faust integration handle LGPL compliance appropriately for commercial use?
      2. Do I need to provide object files or take additional steps beyond attribution in my EULA?
      3. How do other commercial HISE developers using Faust handle this?

      I've already included proper attribution to the Faust Standard Libraries in my EULA. Just want to make sure I'm covering all the bases before releasing commercially.

      Thanks for any guidance!

      posted in Faust Development
      C
      cassettedeath
    • RE: Restoring properties with DAW session

      @David-Healey Just so the setting saves in the DAW project. I.e the user has the chord button on for a project - reopens the project and that setting is still on

      posted in General Questions
      C
      cassettedeath
    • RE: Restoring properties with DAW session

      @David-Healey yes that would be good

      I suppose the values have to jump from what’s saved in the preset to the previous value?

      posted in General Questions
      C
      cassettedeath
    • RE: Restoring properties with DAW session

      @David-Healey Snippet ```
      code_text

      const uph = Engine.createUserPresetHandler();
      
      const var Knob1 = Content.getComponent("Knob1");
      
      reg knobValue;
      
      uph.setPreCallback(function(presetData)
      {
      	 if (!uph.isInternalPresetLoad())
      	 	knobValue = Knob1.getValue();
      });
      
      uph.setPostCallback(function(presetFile)
      {
      	 if (!uph.isInternalPresetLoad())
      	 	Knob1.setValue(knobValue);
      });
      posted in General Questions
      C
      cassettedeath
    • RE: Restoring properties with DAW session

      @David-Healey Restoring values in a daw session without the save in preset flag

      posted in General Questions
      C
      cassettedeath
    • RE: Restoring properties with DAW session

      @David-Healey Would there be any way to make it so that the values don't update visually every time you change a preset?

      In my case the button opens a panel and it’s quite abrupt seeing it open and close every preset change. Could this be to do with where the code is placed?

      It’s a trade off between the option to say, browse presets without turning off the arp every time or the unaesthetic UI value jump.

      posted in General Questions
      C
      cassettedeath
    • RE: ERROR - XML Parsing Issue

      @David-Healey No errors found. I will try recompile them

      posted in General Questions
      C
      cassettedeath
    • RE: ERROR - XML Parsing Issue

      @David-Healey Yeah I recompiled them on windows

      posted in General Questions
      C
      cassettedeath
    • RE: ERROR - XML Parsing Issue

      @David-Healey Hardcoded Master FX... Faust and a .h Limiter which I was having issues with as it had Pregain (dB) which would cause errors

      posted in General Questions
      C
      cassettedeath
    • ERROR - XML Parsing Issue

      My project builds fine on a Mac, but when I try build on Windows i get an error saying 'XML Parsing Issue - expected "=" after atribute "1" and then Project XML invalid.'

      I have tested a basic project and that builds fine on Windows.

      I have checked the XML with XML validators and no errors were found...

      It's not creating the AutoGenerated.jucer file...

      Any ideas?

      posted in General Questions
      C
      cassettedeath
    • Duplicating track resets button

      When I duplicate a track (in logic) buttons are changed to their default state (0).

      Is there a method/setting that saves the state when duplicating tracks?

      (I think this sometimes happens when re-opening a saved DAW project too)

      posted in General Questions
      C
      cassettedeath