Custom knobs and buttons?

How can I add Png Strips as rotary´s and knobs in the Gui editor?

Thanks for you time .

You’re looking for a rather old fashioned 80s/90s approach which the Slider design does not support by default.

Regardless, there are several posts along these lines in the forum. For example: Skinning the Slider / Replacing knob and slider track with PNGs

1 Like

Which bit is old-fashioned? :slight_smile:

3 Likes

ok, thanks .
Yes, I am making a clone of an old vst :stuck_out_tongue:
Seems weird to not support such a nice way of making knobs , even though its trendy today to make flat designs , which I am not a fan of personally.

1 Like

Hey Folks,

if I had an LED Meter, which has the Kind of png.-Layers lalalandasynth described for Knobs,

is there a newer possibility to animate this, without using that whole “Png Strip” ?

Maybe to Import the Background LED Meter without any LED on as a Drawable and then draw the lights of the Meter as “Points” ?
Do you think this could look nice, and more importantly, have working functionality as a LED Meter?

I am talking about that Kind of LED Meter shown in the Picture below :slight_smile:

LEDMeter

Well, it’s even easier than this, you simply need an image of each LED colour and one, that is off.
In your paint just iterate over the LEDs and call paint, selecting the on or off version depending on if the threshold of each LED is exceeded.

While this retro design will appeal to some people, it is actually rather useless, if you want to trim the knobs accordingly. That’s why I created my meter class as discrete bar with a colour gradient (granted, the colours could be nicer, when I find time, I will improve that, but it’s customisable anyway).
LM

I created a LookAndFeel, so that you can easily override the paint method of the level meter to paint your LEDs, but I agree, that the LookAndFeel class became a little monstrous:

2 Likes