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 @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+362mDQ39zLUHzqELe5wrALUl1168irn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9AnN+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
                            • ustkU
                              ustk @d.healey
                              last edited by

                              @d-healey Got a better fix:

                              Math.pow(me, dumb);
                              

                              The showTextBox property simply needs to be disabled...

                              magic.gif

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

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

                                @ustk said in SliderPack LAF — Two Quick Questions:

                                The showTextBox property simply needs to be disabled...

                                Sliderpacks don't have that property.

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

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

                                  @d-healey Oh Math.pow won't be enough then... I haven't paid attention it's for an sp...

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

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

                                  23

                                  Online

                                  2.0k

                                  Users

                                  12.8k

                                  Topics

                                  110.7k

                                  Posts