HISE Logo Forum
    • Categories
    • Register
    • Login

    SliderPack LAF — Two Quick Questions

    Scheduled Pinned Locked Moved Scripting
    23 Posts 5 Posters 162 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.
    • ILIAMI
      ILIAM
      last edited by

      Hey everyone, I’ve got two quick questions about the Slider Pack Look and Feel:

      • lIs there any obj.hover or obj.over property available for Slider Pack LAF?

      • Is it possible to change the slider’s drag direction from bottom-to-top to left-to-right?

      HiseSnippet 1150.3ocsV01SiaDDdMfqpc6U0qp+.VwmLb4BNI.ADhVB4EfdARNB8fVD5zF60I6gyto1axQ3D+25Oo9OncVaGrCuzWh5EE4ncl4wyyN6LOaZGHbnggh.jl4YSFRQZesdmIbY+p8ILN5nZHsuQ+XRnjFfiMs+jgjvPpKRSawCTFzLVBE84O9w8I9DtCM0DB8NAyg1jMfISs1du2v78aPbomwFjI5026HGAupvWLB3yh51ngDmqI8nmPTgsfN5PRXej1p5ks21tDc6MbojRaUZiB1jsK6sdIWa2tjxtaUz1aiM6Vl5gz9h5tLoHnijHogHsk1W3NoSewG4wI3crPVWepZQATGHywlaH7cUaQkUT09Le21SKTgH3szNsrsXbY660Ol4xt2dZ46aibfSQjs.psvrzawYnWgrzyNC8dBJokgRKESoWp2wIfMTl5QwmuR+HNbZ5QfyorTINVzB9KpWU.Qvk4GPtl1H.VbOBqh114vErsWYGSS3rJThGSBvcZ2rRC7t3o.cBnv9oovg32THttB2sAk5aAfxfwm4RCZCGvExfrGUVULXnfCKrVNSLKqxnoYTlxGP6wTsjMFwcjLA2ZY2.xGax3TRPLlkyg8l5rWNrn6GVw7SllFpLSf7AFxS.VtSrowIlFS7GQOQDLf3ytk5BoznW9PEmT8jV12TtjcwJkpTBXC3Qk0CEAraA1CaUH+VjKKcEdMbwbXxk1WodV7JE0MfuLOr0X7OrKtvJlFexzvfbYgqfLG8yqvSghWEaUHuM903wpzXDYe2T2uNB.34NCCSCpeH8Aus33dNnoIoHjjUiSxcIazCBHtLn12.FPstz9l5Ui2upC8bX02KJ2nNL7Ua6XSPuvUwECO.xoTGoEQs9AEtKl9hRKbmJFwggLEDBumO0Z5YRTdJnBbs0RBU8ZScq7Ydm5QlFDU1dTGWT6xJ6LsU.K3mHjzVbKU2fg4cl3G5xy6I8o5OCD99zfmzsRGK3uCnEezftzfb3nNr6CDlUmU.P+4E.xpO4DOtjIPA+HNS1ZHk+bpVnjYLkXQBqfzKijJ9tDohz5IhApBuPOSAFEQcfhZJsZWhjfztTey0yW87VCy2p6V770Nu0OcXa3QPdms3i2+C9+h+5s9U34qZ.V2u4lus2aFCdryedoMdaslR2yNcbue6fiqbfz81ZMgfZG6uBB8yGUSkjD5BLG1MCoARlpPoUiNFtYIVoyPuFM7ZoXXTrIxGf1++gM2MYuzZR1ECxdGm0uOfjITq8POV2ET7Eti7IxYuFPcYYhCn0XFsWk9JOjImj8xz+2ta3eKEeodalzo+SywEdBNBGMeN3XxMpuPutmGL3mRvkzabwmmqOQfXjjw6cLQFvfyW8SFMnCHb4Pgry4fFqpueA0PT7Z6oyAcnb2nE+I7IwYA0ZsDmEl5DMf3DHduS7nm5N6uLxBvIdz+uw.9iVvZ78SZY6AcYu2wY1W0i.VbdAVZdAt97Bbi4E3lyKvxyKvs9mAp9GdUFIEChGaPniaWOR6RSqNm.cfQcqn+Bf2AI3B
      
      ulrikU 1 Reply Last reply Reply Quote 0
      • ulrikU
        ulrik @ILIAM
        last edited by

        @ILIAM said in SliderPack LAF — Two Quick Questions:

        Hey everyone, I’ve got two quick questions about the Slider Pack Look and Feel:

        lIs there any obj.hover or obj.over property available for Slider Pack LAF?

        You can Console.print(trace(obj)); inside the laf function to see all properties

        Skärmavbild 2025-10-26 kl. 08.57.22.png

        Skärmavbild 2025-10-26 kl. 08.56.41.png

        Is it possible to change the slider’s drag direction from bottom-to-top to left-to-right?

        I don't know

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

        ILIAMI 1 Reply Last reply Reply Quote 3
        • ILIAMI
          ILIAM @ulrik
          last edited by

          @ulrik So short answer is NO to both questions?

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

            @ILIAM said in SliderPack LAF — Two Quick Questions:

            So short answer is NO to both questions?

            ceef86f0-4fc5-4e4f-8303-407f3eee0f19-image.png

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            ILIAMI 1 Reply Last reply Reply Quote 1
            • ILIAMI
              ILIAM @d.healey
              last edited by

              @d-healey said in SliderPack LAF — Two Quick Questions:

              short answer is NO to both questions?

              What this means David?
              NO?

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

                @ILIAM It means that obj.hover is available, so "yes" to your first question and probably "no" to your second

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

                ILIAMI 1 Reply Last reply Reply Quote 0
                • ILIAMI
                  ILIAM @d.healey
                  last edited by

                  @d-healey So i need to allow it in json?

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

                    @ILIAM Your question was "lIs there any obj.hover or obj.over property available for Slider Pack LAF?"

                    The answer is yes, obj.hover

                    I don't understand the json question.

                    Free HISE Bootcamp Full Course for beginners.
                    YouTube Channel - Public HISE tutorials
                    My Patreon - HISE tutorials

                    ILIAMI 1 Reply Last reply Reply Quote 0
                    • ILIAMI
                      ILIAM @d.healey
                      last edited by

                      @d-healey I dont see any Hover effetc!

                      const var SPLAF = Content.createLocalLookAndFeel();
                      const var SliderPack1 = Content.getComponent("SliderPack1");
                      
                      
                      SPLAF.registerFunction("drawLinearSlider", function(g, obj)
                      {
                      
                      	var a = obj.area;
                      	var v = obj.valueNormalized;
                      
                      	g.setColour(0x7302A3A3);
                      	g.drawHorizontalLine(a[3] / 2, a[0], a[2]);
                      
                      	
                      
                      	if (v >= 1)
                      	{
                      		a[1] = a[1] + a[3] / 2 * (1.0 - v);
                      		a[3] = a[3] / 2 - a[1];
                      	}		
                      	else
                      	{
                      		a[1] = a[3] / 2;
                      		a[3] = a[3] / 2 - a[3] / 2 * (2.0 * v);
                      	}
                      	g.setGradientFill([0xEC02A3A3, 10, 0, 0X7FE903D9, 10, 100]);
                      	g.fillRect(a);
                      	
                      	g.setColour(0XEC02A3A3);
                      	g.drawRoundedRectangle(obj.area, 0, 1);
                      	//g.drawRect(obj.area, 1);	
                      
                      	
                      	if(obj.hover)
                      	{
                      		g.setColour(0XFFffffff);
                      		g.drawRoundedRectangle(obj.area, 0, 10);
                      	}
                      
                      });
                      
                      SliderPack1.setLocalLookAndFeel(SPLAF);
                      
                      ILIAMI 1 Reply Last reply Reply Quote 0
                      • ILIAMI
                        ILIAM @ILIAM
                        last edited by

                        @d-healey No effect!

                        See:

                        HiseSnippet 1194.3ocsVstbhaCEVNIts1samtc5Cfl7KmTVGCjDfISZCg.YSatvrjtS1lIyNBaYPMFIprfD1cx6V+See5aP6Q1vZStzKLc8v.bt7oymN5nywskBeZbrPhLrOexPJx3KL6Lgq52nOgwQGc.x3KMOgDqnRbpp8mLjDGSCPFFKenVgg0Jnjm+362mDQ39zLUHzqELe5wrALUl1168irnnVj.54rA47dy8NxWvaHhDi.9rroGZHw+ZRO5oDsaKYhdIItOxXcyJd07JSqsU.kTtZ4sJ5QpUIbyxAdAcIUBpVxKbqs6VgFhL9jlALkP1QQTzXjwJ6KBlzou3FdZ.dMKl0MhpEJh5.QNUcKQTfdKp0hZzmEEzdVhJFAqR6rz1xoosuw7DV.6C5yReeUhAbFh7IPiklmdKOG8Jlmdd4n2iPIibTZkTJ8byN9R1PUlEMe9byi3voYHANmxSkTeQK86Ka1P.dvUtCHWSaIAgOfvojmWAbQOu01w1FNqhU3wDItS6iq2BuKdFPeIE1OGK7IQGKDWWmGzhRib.P4vDwBnx1vAbwbH6QUMDCFJ3ffyp47YUcDsSBjqj1ioqHaMh6qXBtypARxMGy3ThLExpEvgyL1q.Vz8WVy9811V5.SfvAJbI.I2IU03opFShFQOUHGPhXuiF.QzpmarlR5RRGuaqT1qT8x0KCjArni5KER16.xC6TH9NjKKeEdCboBXxkdWo+tzUZlaAeXgXmw3uaWbw0rsduskE4xhWAQN4muEOCJdcrSQWO7Kvi0gwJQ+tYleQB.vxcVV1VznX58VsT+dJnYAoDDj0SCxcS2nGJIALH02Bte5bo2sMajte0m4Ev5OWToUS3t2A0RUAkBWklLBAHuh5qbHZ46k3tX1Bkk3dkXDGtiogP38hnNyNSRhSQsiarwTW0KalYvlNcpSnIZ6KFSkqgwarA979rXbffFyU3aDxqSyLySkVsBSdRRt2m22Yaem97JWkmF7CJkSJDWamYEYXA+TghdF2QWmYYemM99lBCeTa5BeoHJhJeTy5Fjx+NfN7QC5RkEvI0tevQnIv7cVLe5NK4a74mdOLmiB9Qbl5rgT9S0NDM8xqtKzTVAgWkzC5qm1CJKehXP6lmYlKAiRnd1X.28BHJBx3Rys2zsaUdn6ahdST8yO6G51rsq94XPqaWPt5neFL49qfC6Kg+cz3a7X6mHWinsel7vlJ2p7wdayzKxXPoeMWD5mN5.cPlRYf8vNZHUpX5jkwAzwvXqz1nVlGPiuVIFl36zdSHiO8+vF717SDmjWXP9AnN+1.RNWc1KLBl2UGNwGS0snQOrGOLcQDLJhnlejidv7TCP0xb8408x4wL0j7Ct+eaNz+VJ9by1Lke+GmiK8HbDNo9XvwoSuelYyvPnIPFAWwr0EebFUifNeJFu2IDkjAG2lmNZPGn0jOEhNmCMzAcFKouWkJ6ok0YfNTdPhveBOSMVTKaL0XwYFQCH9Rwa8SuMpe+fOKQCvIdx6RYAuTGHievkOcIY.6s99yuTO.XoEEX4EE3lKJvsVTfaun.qrn.q9OCT+1j0GoDCRu1fPmztYRqLCilbBTAlTsh9Kv6oPTY
                        
                        d.healeyD 1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @ILIAM
                          last edited by

                          @ILIAM Looks like a bug, the hover property is there but it doesn't change

                          Free HISE Bootcamp Full Course for beginners.
                          YouTube Channel - Public HISE tutorials
                          My Patreon - HISE tutorials

                          ILIAMI ustkU 2 Replies Last reply Reply Quote 1
                          • ILIAMI
                            ILIAM @d.healey
                            last edited by

                            @d-healey said in SliderPack LAF — Two Quick Questions:

                            he hover property is there but it doesn't change

                            Exactly

                            1 Reply Last reply Reply Quote 0
                            • ulrikU
                              ulrik @ILIAM
                              last edited by

                              @ILIAM I tried the snippet and, as David say, it seems to be a bug here.
                              The hover property exists but it is always showing false

                              Hise Develop branch
                              MacOs 15.3.1, Xcode 16.2
                              http://musikboden.se

                              C 1 Reply Last reply Reply Quote 1
                              • C
                                charlotteemma @ulrik
                                last edited by

                                Slide Pack OF — Two Quick Questions" is not a standard phrase. It is most likely a title or instruction for a business meeting, training session, or presentation. The phrase indicates the creation of a presentation file (a "slide pack") with specific content: "two quick questions". It suggests that each slide should have no spacebar counter more than seven lines of text, with each line containing no more than seven words. This rule aims to keep slides concise and easy to understand. This is a simple way to show gratitude that the audience took time to listen. Clean has a pre-built slide to thank the audience for their attendance.

                                1 Reply Last reply Reply Quote 0
                                • ustkU
                                  ustk
                                  last edited by

                                  yep guys, neither is working the clicked property...

                                  Hise made me an F5 dude, browser just suffers...

                                  1 Reply Last reply Reply Quote 0
                                  • ustkU
                                    ustk @d.healey
                                    last edited by

                                    @d-healey @ulrik oh wait a second, I'm just making the parallel in my head! The intensity slider in the modulation matrix cannot be clicked everywhere because of the overlapping label. And I've just seen that the label isn't deactivated for the linear slider LAF.
                                    Trying a fix and making a PR...

                                    Hise made me an F5 dude, browser just suffers...

                                    ILIAMI 1 Reply Last reply Reply Quote 1
                                    • ILIAMI
                                      ILIAM @ustk
                                      last edited by

                                      @ustk 🙏 Im and on an older version of hise, can you adress an cpp or h file that needs the changes?
                                      Can't update because of compatibility issues with new version

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

                                        @ILIAM said in SliderPack LAF — Two Quick Questions:

                                        Can't update because of compatibility issues with new version

                                        What's the issue? It's better we solve that than you make a Frankenhise :)

                                        Free HISE Bootcamp Full Course for beginners.
                                        YouTube Channel - Public HISE tutorials
                                        My Patreon - HISE tutorials

                                        ustkU 1 Reply Last reply Reply Quote 3
                                        • ustkU
                                          ustk
                                          last edited by

                                          Alright it's pushed.

                                          @ILIAM Well, I think your issue needs to be resolved first then, working this way will bring nothing else than confusion and worse, later project issues.
                                          But if you really want to do this, you can see the pull request on github and download the modified file. That being said, it's not what I advise...

                                          Hise made me an F5 dude, browser just suffers...

                                          1 Reply Last reply Reply Quote 2
                                          • ustkU
                                            ustk
                                            last edited by

                                            Unfortunately this doesn't fix the ModulationMatrix linear slider issue... @Christoph-Hart ?

                                            Hise made me an F5 dude, browser just suffers...

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

                                            22

                                            Online

                                            2.0k

                                            Users

                                            12.8k

                                            Topics

                                            110.7k

                                            Posts