SliderPack LAF — Two Quick Questions
-
@ILIAM Your question was "lIs there any obj.hover or obj.over property available for Slider Pack LAF?"
The answer is yes,
obj.hoverI don't understand the json question.
-
@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); -
@d-healey No effect!
See:
HiseSnippet 1194.3ocsVstbhaCEVNIts1samtc5Cfl7KmTVGCjDfISZCg.YSatvrjtS1lIyNBaYPMFIprfD1cx6V+See5aP6Q1vZStzKLc8v.bt7oymN5nywskBeZbrPhLrOexPJx3KL6Lgq52nOgwQGc.x3KMOgDqnRbpp8mLjDGSCPFFKenVgg0Jnjm+362mDQ39zLUHzqELe5wrALUl1168irnnVj.54rA47dy8NxWvaHhDi.9rroGZHw+ZRO5oDsaKYhdIItOxXcyJd07JSqsU.kTtZ4sJ5QpUIbyxAdAcIUBpVxKbqs6VgFhL9jlALkP1QQTzXjwJ6KBlzou3FdZ.dMKl0MhpEJh5.QNUcKQTfdKp0hZzmEEzdVhJFAqR6rz1xoosuw7DV.6C5yReeUhAbFh7IPiklmdKOG8Jlmdd4n2iPIibTZkTJ8byN9R1PUlEMe9byi3voYHANmxSkTeQK86Ka1P.dvUtCHWSaIAgOfvojmWAbQOu01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TAlTsh9Kv6oPTY -
@ILIAM Looks like a bug, the hover property is there but it doesn't change
-
@d-healey said in SliderPack LAF — Two Quick Questions:
he hover property is there but it doesn't change
Exactly
-
@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 -
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.
-
yep guys, neither is working the clicked property...
-
@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... -
@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 -
@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 :)
-
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... -
Unfortunately this doesn't fix the ModulationMatrix linear slider issue... @Christoph-Hart ?
-
@d-healey Got a better fix:
Math.pow(me, dumb);The
showTextBoxproperty simply needs to be disabled...
-
@ustk said in SliderPack LAF — Two Quick Questions:
The showTextBox property simply needs to be disabled...
Sliderpacks don't have that property.
-
@d-healey Oh Math.pow won't be enough then... I haven't paid attention it's for an sp...