HISE Logo Forum
    • Categories
    • Register
    • Login

    LAF ScriptSlider?

    Scheduled Pinned Locked Moved General Questions
    195 Posts 11 Posters 15.9k 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.
    • ustkU
      ustk @A Former User
      last edited by

      @vewilya yeah I guess if it works in the project you won't have issues…

      Can't help pressing F5 in the forum...

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

        @d-healey Yup get that, just doesn't seem to be anything for those boxes... Are they appearing in your project?

        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 Oh I see what you mean. I'm not using the settings tile so I hadn't noticed. You could paint a panel behind the settings tile.

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

            @d-healey Oh I mean for the button boxes in general, like for the below.... I get a hover box, but normally there's a static grey box for these kind of options/buttons

            Screenshot 2021-03-18 at 20.08.20.png

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

            d.healeyD LindonL 2 Replies Last reply Reply Quote 0
            • d.healeyD
              d.healey @DanH
              last edited by

              @DanH I think you need to customise the LAF for alert boxes.

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

                @DanH said in LAF ScriptSlider?:

                @d-healey Oh I mean for the button boxes in general, like for the below.... I get a hover box, but normally there's a static grey box for these kind of options/buttons

                Screenshot 2021-03-18 at 20.08.20.png

                This is why I think LAF isnt very nice. If you start to use it then you have to restyle every component that a plug uses - including all the ones you dont use in your interface.. so all the dialog boxes etc....

                HISE Development for hire.
                www.channelrobot.com

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

                  @Lindon any idea how to script these boxes?! :b

                  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 I told you, it's the LAF for the alert boxes - https://docs.hise.audio/glossary/custom_lookandfeel.html#alert-windows

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

                      @d-healey hmmmm, I just can't see anything that refers to them. I think it's possibly in the source code, the font in the buttons is the Default font (I think), and there's no option to change that, or the colours in the script (I did, however, change the colours in the source code...)

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

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey
                          last edited by d.healey

                          Here is an example that will place boxes around the buttons in the Save XML popup. To style different popups you need to check the text property of obj and adjust the styling the way you like. As far as I can tell there is no way to change the button text colour or font (maybe the global font can do it)...

                          HiseSnippet 927.3ocsVE2aZbCE2GgqZPWlVU6G.K9qC0qniPHoRnpUBgqB0lTztrtIghpL2YN7hOajOSSPS8679Fr97c.GrR5RQZ9O.d989Y+yO+98LCUxPZZpTgrpb0hYTj0OZGrPnm1aJgIPCNGY8S1WPR0TENepyVLijlRiPVVG7FyDVUJixF+8ubFgSDgzhoPnOHYgz2wRX5hYG952x3beRD8JVxFQe7qGDJE8jb4bfOGX6glQBugDSujXBqjMx5Q8iXZoJPSzzTHlyjQKBlJuUjG+GXorwbpwnIJ.Vn7oQ8lx3QCWcVSQHqxCKN4Gjexel8ErH154Kx.+blCbAhMyAVk1lRk2hRMuOJ4K4QlE3dnm0FzqbN8dhcPnhMSW3wvsGaOP.WNSHPZeSZkGKpzSOvtmDhPnajPtg5q.i0HbNwyyE21yqdmCqdXUH4mpwehnvbxD7qv8EwLAsQnhBGs2vkiI77k8cR4McEQ9TJ2odG.IDeCEMlYpS7mKB0LovoVjhbaWNUo+clHRdaMW7jU9hcwxw+Y8p+UULLhaLAJH5x4Nd2462Ja.qqwU1GFJQ.BAPZP.1zYIpTpNuZAvc7wdYi5c1XI+UZn1gT+qiO+qzF2Nkooq8aHbNDWrWiVahyGxaN05ISXg3.hHEeQ.bdZ9xsv1kyhEznqn2ocLbUyzbpKdDjj8bWy9QGcsKtkG7QsP3dQQipYx+lk4v6kni4fTXUXKObx4BnFxPXhHlScFQF4cM943llaUxnVWieAt0ot3SAyiZC6W6+68IVQW7P2lSOZqs4j1EaS0OWuypKarTboTSeuvwbeWo5mqh+2tlLYm9LUtJIGJg1oaS2C02BniXdxXpxEJf3yoqCDjTaqYezCSyFlKj1HPoXffoe+L5R6BUcycnpQKUhvu9sAmSzDiPe4bPby.kByPGqyoeB5ZlK6qXeNM8FsbFz27q5I.cljQy4D81sqL8kW5.xGa0Wvn8EoL8hM6a+czCyam8v14o8AR2mXOjoCmta9VZG7ExZ+ey2kuHbnc+ISf59BxV11+O121+eGTAzbZlH9BhVwtCYYe47j.PdFRAlHDTNrQ1VkLUT41dFaSlIfJhxL9GXrzYSis0RmMW4DkPBUxOFlqTLu47CYy.bRj8baE3cevF2Dkod.b1dM7PIvSgeLLzjJdAv8ci4n8.Sq8.yw6Al16AlS1CLmtGXd42Di4egzctVljKSfIF1OqMhkUeAApxxpHQegT0yJY
                          
                          1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey
                            last edited by d.healey

                            Oh I'm an idiot. There's a LAF function specifically for styling dialog buttons.

                            laf.registerFunction("drawDialogButton", function(g, obj)

                            DanHD 2 Replies Last reply Reply Quote 0
                            • DanHD
                              DanH @d.healey
                              last edited by

                              @d-healey said in LAF ScriptSlider?:

                              laf.registerFunction("drawDialogButton", function(g, obj)

                              Thanks David :)

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

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

                                @d-healey haha! this also affects the preset browser buttons! A real can of worms!

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

                                  @DanH You can filter out individual buttons by their text property, but I think an opt-in rather than an opt-out solution would be better... @Christoph-Hart

                                  HiseSnippet 1158.3oc2V0saaaCElxwJX1cYscXO.Z9Ja.GA4j1thEDr3jXWXrlDi5rtATTTvHQIyEJRAJpjXTj2g8br61avteuL6xcW1ghxV1MNcMFX6hwKr74W8oCO+MTJ7IooBIxp1oSRHHqO2dzDtZ7AiwTNZvgHquv9HbphHcLr1eRBNMkDfrrV6EZFV0phxO+42sOlg49jRVHzqETexKowTUI2g688TFqONfbJMdNsexdC7E7CDLQFfm0r8PIX+ywQjiwZ0pXirVuW.UIjiTXEIEzYeQvjQiEWxM5+ZZJ8LFQSzAMBbjgM5fwTVvvoeqoHjU0gke4qY9x+J6inAzY7Ki.OJWfSoEyGCrprHjpt.j5bWPpufEncvc.Oq4fWUC7dr8HeIMQUJQisGXOfCWNgXHrOOrL5hpDW09.AnAW4FiOmzWBDyrn4y77Z67TOuV6rQ8MpCA+TkyEXoCCG5rqSOdDkSb8kD3S6ELwYXlwsuTHNuKOnOgvZ1ZGvRPeWIIhpyS5mw8UTAuYi.I9xCoXlHZ+LkRvaz1Ibpvn1Nhy94V0e+F0cfCfwTAi3lHobUSkTCNsbMvzxM+pgVhjjRT6KEWlB4j657lFGIjDv0M5FDneLBeAAtqzZ03sKXNMzo4Bl6R4AjqNIT+pbUjqTsb95cc1rSKi9uO+W8IxMDxX6xXM8tZqs7xOvGtVzLcnF2HtfHaMi4+fwKyAAPpy8wAyAR3KqOb+1rwAhXpuyHLO04nQPPoyVtK8Ulahofqo4Qp6kioJxbJG4puG6xnQbRvoPPZVzJ+JzECoGPX2GRwjjfFSuwt17fvRIEg+hq5+WDOe9+gwyEdKWW+5V6LsJxQvOVnHmvaBER0qU+55NennvvkJS2SPJXLhboh08kkeLCaxyhOiHaCkjrLxLEglUK1Mb8Ostg9lVTyonfOfSUmjPJnK6W1YI8KQE83f+8CCNDqv5VnE7.8RHREUCGqCIW.yiLMTqYeHI8bkHIW23DAW6AqGnJlFX500mIvJJO5TJ.aJffGZOOqNnqJGfMXuIkD6s2kz.0Xjks0WVAgFSnQiUZpe0ZFdM.4g1CmuqD5rnoy.qsN3n+R6MHGJtj6ucyubyhb2Ry9O98axYmGAprokcdIWCcXU2UrnK725njYj1yD06pDHwFtdS6lBNKKVqRHFJbK0IO7KuCGnSzRusagDAiA2VVe7EBI.d879EDdbVrABZa11vyv3G0AyWAwcAH4MlVIdta+Am12aAZ9uci5WCqkbqQtvfeQPFCqVba.8ZOEBfn1Bic0iVgXoZx7qEcOVQvaoqHrzT9OQ39X6gTk+3ki2JKAuPoy+13sXgqMr6EFR7Ukfspc+eZU2t5d.kWIxz0uGgURJT9ZCYcifZHeBfDNGFYoKSqnaqXn8zz5HyHBOHm3F3THril1pPXmoBQwXeo3c9l1k5U59rbN.l34ayVCVqFnc5fxagB1Y645ghgMMemuuNTrIf8kayVqfMauB17jUvlmtB17rUvluYEr44eTazK42MSIhMkI.ig8x6jZY0iigrr7LRzeSE2GH+
                                  
                                  DanHD 1 Reply Last reply Reply Quote 0
                                  • DanHD
                                    DanH @d.healey
                                    last edited by

                                    @d-healey Thanks, this has been an education (again!)

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

                                    1 Reply Last reply Reply Quote 0
                                    • Christoph HartC
                                      Christoph Hart
                                      last edited by

                                      I've just commited a few changes that should reduce the sketchiness of the scripted LAF:

                                      • The alert windows do not get messed up anymore as soon as you enable the scripted LAF
                                      • same with the custom settings tile (actually I had to change the default appearance of that one a bit in order to enable this, but it looked super weird anyway with its default JUCE look and feel)
                                      • there is now a parentType property that contains the ID of the FloatingTile that this component is in. This way you can do stuff like
                                      if(obj.parentType == "CustomSettings")
                                          g.setFont("Comic Sans MS");
                                      
                                      d.healeyD DanHD 3 Replies Last reply Reply Quote 2
                                      • d.healeyD
                                        d.healey @Christoph Hart
                                        last edited by

                                        @Christoph-Hart Thanks Christoph!

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

                                          @Christoph-Hart 👏

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

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

                                            @Christoph-Hart do you think you tweaked something here that resulted in this

                                            Link Preview Image
                                            Blank boxes in new Scriptnode (no LAF)

                                            Is it just me or have some boxes gone blank in the latest version (downloaded yesterday) for example: Select AUi and.... Plus the sample installer (there i...

                                            favicon

                                            Forum (forum.hise.audio)

                                            ?

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

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

                                            19

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.7k

                                            Posts