HISE Logo Forum
    • Categories
    • Register
    • Login

    LAF For CustomSettings, Can't Find The Thread :/

    Scheduled Pinned Locked Moved General Questions
    19 Posts 2 Posters 502 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.
    • NatanN
      Natan
      last edited by

      @d-healey said in LAF For CustomSettings, Can't Find The Thread :/:

      Console.print(trace(obj));

      Like This:

      const laf = Engine.createGlobalScriptLookAndFeel();
      
      laf.registerFunction("drawDialogButton", function(g, obj)
      {
          if (obj.text == "Change sample folder location")
          {
              g.fillAll(Colours.red);
              g.setColour(Colours.blue);
              g.drawAlignedText(obj.text, obj.area, "centred");
          }
          
          Console.print(trace(obj));
      });
      

      But This Does Nothing

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

        @Natan

        But This Does Nothing

        You should see output in the console when you trigger the LAF function. Try opening a save dialog and it should trigger.

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

        1 Reply Last reply Reply Quote 1
        • NatanN
          Natan
          last edited by Natan

          Yeah I Get The Idea :)Thank You Sir

          But Now There is 2 Missing Buttons:
          How to Solve These?
          This Shows Up At Very First, Once You Open The VST Plugin
          Screenshot 2021-07-09 025955.png

          There is Menu Style Button Is Here That Disappred
          Screenshot 2021-07-09 025922.png

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

            You'll need to style them with LAF. First you have to figure out which buttons are missing.

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

            NatanN 1 Reply Last reply Reply Quote 0
            • NatanN
              Natan @d.healey
              last edited by

              @d-healey
              Not Sure What Is The First One :/
              And The Second One

              Let me Throw An Else { Do Something } After All My "drawDialogButton"
              And See What's Going On

              1 Reply Last reply Reply Quote 0
              • NatanN
                Natan
                last edited by

                Okey These Are The Buttons. And Both Says Change Samples Location :) WTH

                Screenshot 2021-07-09 031141.png

                Screenshot 2021-07-09 031101.png

                NatanN 1 Reply Last reply Reply Quote 0
                • NatanN
                  Natan @Natan
                  last edited by Natan

                  My Bad, I Copy And Pasted Same "g.drawAlignedText("Change Samples Location", obj.area, "centred");"

                  Lets Try Again

                          g.drawAlignedText(obj.text, obj.area, "centred");
                  
                  1 Reply Last reply Reply Quote 1
                  • NatanN
                    Natan
                    last edited by Natan

                    Fixed:
                    Just Added An Else At The End Of "drawDialogButton" To Not Missing Anything.

                        else 
                        {
                            g.setColour(0XFF3f3f3f);
                            g.fillRoundedRectangle(obj.area,2);
                            
                            g.setColour(0XFFDADADA);
                            obj.over ? g.setColour(0xFFF9F9F9): "";
                            g.setFont("Gill Sans MT Medium", 18);
                            g.drawAlignedText(obj.text, obj.area, "centred");
                        }  
                    

                    Screenshot 2021-07-09 032405.png

                    Screenshot 2021-07-09 032343.png

                    1 Reply Last reply Reply Quote 0
                    • NatanN
                      Natan
                      last edited by

                      @d-healey Sir

                      A Quick Question,
                      My Instruments Asked For The Samples HR1, And I STill Not Exported My Samples, So I Selected The Second Option, And Point The Instrument To The Projects Sample Folder, And It Works Just Fine.

                      Is This Means That We Can Ship The Plugin Like That?
                      DLL Files With Wav Files?

                      If Yes, How To Ignore The First Option ( Install Samples )
                      , And Keeping The Choose Sample Folders Option?

                      1 Reply Last reply Reply Quote 0
                      • NatanN
                        Natan
                        last edited by Natan

                        @d-healey Sir
                        I Added This Line Into My Project, To Completly Remove The Sample Installing Dialog:

                        HISE_SAMPLE_DIALOG_SHOW_INSTALL_BUTTON=1
                        HISE_SAMPLE_DIALOG_SHOW_LOCATE_BUTTON=0
                        

                        And it works just okay.

                        Now once I opened the plugin, there is no sound inside
                        So I get to the setting tab and pointed to the plugin to the samples folder, and close/reopened the plugin, and all good here.

                        Just Found Out That by default The plugin looks for the samples In This Folder:
                        C:\Users\rezae\Documents\My Company\My Plugin\Samples

                        So Is this possible to add this folder to the Installer to And make it Even less confusing?

                        1 Reply Last reply Reply Quote 0
                        • NatanN
                          Natan
                          last edited by Natan

                          Okey, I removed the first dialog and kept the choose sample folders.
                          Evrything works just fine, except one thing,

                          By selecting a sample map, if I click on a button ( I found which one is it )
                          The sample goes one octave up, and down.

                          Samples are just wav files, and I didn't exported them into monoliths yet.

                          EDIT:
                          Is CH1 Files Contains The Mapping System?

                          Edit 2 Looks like Sample Maps Gets Embedded Into The Plugin.

                          So I'm Going To Ship The Plugin With CH1 Format, And Yeah 🚀

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

                          13

                          Online

                          1.8k

                          Users

                          12.0k

                          Topics

                          104.2k

                          Posts