VL.Elementa icon indicating copy to clipboard operation
VL.Elementa copied to clipboard

Toggle Widget is missing an "Invert/Toggle" pin

Open jhnnslmk opened this issue 5 years ago • 2 comments

Hi, I have a Toggle in my UI (simple Play-Button) that I want to toggle with Space as well. Right now I'd have to store its state on the outside myself to have its inverse Value and push it to the Value pin myself. Probably a simple Toggle pin might help.

image

jhnnslmk avatar Dec 05 '19 17:12 jhnnslmk

Ideally it is better with a bang, get the play state and invert it inside the data binding.

lasalillo avatar Jun 14 '20 11:06 lasalillo

You can already operate on the value anyway you want (in every widgets): Configure the widget > show valueProperty output pin > use SetValue operation in your patch to set the value as you like

natan-sinigaglia avatar Jun 15 '20 22:06 natan-sinigaglia