HISE Logo Forum
    • Categories
    • Register
    • Login

    Settings Menu blank with LAF

    Scheduled Pinned Locked Moved General Questions
    12 Posts 5 Posters 465 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 @Lindon
      last edited by

      @Lindon Ta, thought it was a newer issue than this and didn't dig deep enough!

      many thanks

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

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

        @DanH yeah it was a long time ago for me -- but Dave had the probelm recently - look down the end of the thread - I tthink he comes to teh same conclusion as me....LAF= too janky to use right now...

        HISE Development for hire.
        www.channelrobot.com

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @Lindon
          last edited by

          @Lindon said in Settings Menu blank with LAF:

          @DanH yeah it was a long time ago for me -- but Dave had the probelm recently - look down the end of the thread - I tthink he comes to teh same conclusion as me....LAF= too janky to use right now...

          After playing with it more I've decided to use it, it still feels janky but I'm adapting to its quirks.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          LindonL 1 Reply Last reply Reply Quote 1
          • LindonL
            Lindon @d.healey
            last edited by

            @d-healey brave...

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 1
            • ?
              A Former User @DanH
              last edited by

              @DanH

              Content.makeFrontInterface(500, 400);
              
              const var laf = Engine.createGlobalScriptLookAndFeel();
              laf.registerFunction("drawPopupMenuBackground", function(g, obj)
              {
                  g.fillAll(0xFF222222);
              
              });
              
              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(0x9F5AC4EC);
                      g.fillEllipse([a[0] + h/3, a[1] + h/3, h/3, h/3]);
                  }
                  
                  g.setFont("Calibri", 15.0);
                  
                  if(obj.isHighlighted)
                  {
                      g.setColour(0x9F5AC4EC);
                      g.fillRect(obj.area);
                      g.setColour(Colours.white);
                      g.drawAlignedText(obj.text, [a[0] + h, a[1], a[2] - h, a[3]], "left");
                  }else{
                      g.setColour(Colours.white);
                      g.drawAlignedText(obj.text, [a[0] + h, a[1], a[2] - h, a[3]], "left");
                  }
              });
              
              laf.registerFunction("drawComboBox", function(g, obj) {
                  var a = obj.area;
                  g.setColour(0xFF1B2129);
                  g.fillRoundedRectangle(a, 1.0);
                  g.setColour(Colours.withAlpha(0xFFACACAC, (obj.enabled && obj.active) ? 1.0 : 0.2));
                  g.drawAlignedText(obj.text, [a[0] + 10, a[1], a[2] - 30, a[3]], "centred");
                  var h = a[3];
                  g.drawTriangle([a[0] + a[2] - h/3 - 10, a[1] + h/3, h/4, h/4], Math.PI*2,1.0);
              });
              
              1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart
                last edited by

                Well this is not a „bug“ in the sense that the scripted LAF expects you to override all functions, but I think there should be a default in place for the things you don‘t override.

                1 Reply Last reply Reply Quote 2
                • ?
                  A Former User @DanH
                  last edited by

                  @DanH said in Settings Menu blank with LAF:

                  EDIT: I'm not crazy about the Change sample folder colour either

                  One way is from HI_LookAndFeels.h
                  LAF Sample Colour.gif

                  1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey
                    last edited by

                    I think we should do away with the settings panel and have individual script functions for each of the options. Then we can customise it any way we like.

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    DanHD 1 Reply Last reply Reply Quote 1
                    • DanHD
                      DanH @d.healey
                      last edited by

                      @d-healey Can we script a ui control for the zoom level now?

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @DanH
                        last edited by

                        @DanH Yeah, that was added a few days ago. I think the function is Engine.setZoomLevel();

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        14

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        103.2k

                        Posts