Value popup styling?
-
@ustk Oh Wow , Youre Example is great To show the full potentials :)
-
// set the popup styling Content.setValuePopupData({ "fontName":"Netto", "fontSize": 14, "borderSize": 1, "borderRadius": 1, "margin":4, "bgColour": 0xFF636363, "itemColour": 0xFF000000, "itemColour2": 0xFF000000, "textColour": 0xFF636363 });
-
Is it possible to make a custom value popup and I dont mean customizing the current one, including the Fade out of the popup ?
There is a bit of a problem when you invert the value of a slider via script and it still shows the non inverted value in the property editor Value popup , another reason why it would be cool to be able to just invert the min/max setting in the property editor.
-
@lalalandsynth I'd say with a script panel. And use a timer to fade the alpha before hiding it.
-
@ustk that could certainly work.
Quick paint routine question.
How can i use the layers?
I managed to start a layer but could not seem to end it as the started layer affected all layers beneath it ? -
@lalalandsynth I think you only need layers for adding blur (and maybe some other effects) otherwise things are layered in the order they are drawn.
-
@d-healey yes , i just saw that there should be a way to both start and end a layer, wondering how to do it.
-
-
Yep, saw that and managed to start a layer , just had problems ending it.
Will have a better look.
-
g.beginLayer(true); //Do stuff g.endLayer();
I think layers might only work properly if you enable the
opaque
button in the panel's property editor. -
@d-healey @lalalandsynth Apparently,
opaque
is used to prevent the rendering of the components that are below, hence save CPU... Or something like this...
Anyway, layers are not affected. You just draw with layers like in an image editor.
Just a few weird things:- gaussianBlur doesn't work
- When
drawOnParent
is set totrue
, the components below are showing through... - I haven't tested extensively, but for what I've seen layers are crashing Hise when used in custom LAF
Panel1.setPaintRoutine(function(g) { g.beginLayer(false); g.setColour(Colours.darkgreen); g.fillEllipse([50,50,100,100]); g.endLayer(); g.beginLayer(true); g.setColour(Colours.deeppink); g.drawRect([100, 20, 100, 150], 5); g.boxBlur(5); g.desaturate(); g.endLayer(); g.beginLayer(false); g.addNoise(0.5); g.setColour(Colours.yellow); g.fillRect([120, 80, 100, 150]); g.endLayer(); });
-
I don't see
drawOnParent
-
@d-healey It's the bool argument of
beginLayer()
-
@ustk Oh yeah, of course!
Setting it to true works if you also enable the opaque button.