SliderPack LAF — Two Quick Questions
-
@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


Is it possible to change the slider’s drag direction from bottom-to-top to left-to-right?
I don't know
-
@ulrik So short answer is NO to both questions?
-
-
@d-healey said in SliderPack LAF — Two Quick Questions:
short answer is NO to both questions?
What this means David?
NO? -
@ILIAM It means that
obj.hoveris available, so "yes" to your first question and probably "no" to your second -
@d-healey So i need to allow it in json?
-
@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+362mDQ39zLUHzqELe5wrALU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mjWXP9AnN+1.RNWc1KLBl2UGNwGS0snQOrGOLcQDLJhnlejidv7TCP0xb8408x4wL0j7Ct+eaNz+VJ9by1Lke+GmiK8HbDNo9XvwoSuelYyvPnIPFAWwr0EebFUifNeJFu2IDkjAG2lmNZPGn0jOEhNmCMzAcFKouWkJ6ok0YfNTdPhveBOSMVTKaL0XwYFQCH9Rwa8SuMpe+fOKQCvIdx6RYAuTGHievkOcIY.6s99yuTO.XoEEX4EE3lKJvsVTfaun.qrn.q9OCT+1j0GoDCRu1fPmztYRqLCilbBTAlTsh9Kv6oPTY -
@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
