jMonkeyEngine / sdk

The jMonkeyEngine3 Software Development Kit based on Netbeans
BSD 3-Clause "New" or "Revised" License
314 stars 100 forks source link

Filter properties - spinners for editing values #428

Open neph1 opened 1 year ago

neph1 commented 1 year ago

It would be nice to be get some spinners when editing filters. They're used elsewhere so should be easy to implement.

image

tonihele commented 1 year ago

Spinner? https://docs.oracle.com/javase/tutorial/uiswing/components/spinner.html

MeFisto94 commented 1 year ago

I think part of the problem here is, that those properties are dynamically created for filters, where they may be manually crafted for other objects. The question here is, if we can get reasonable values (min, max, step), but I guess we can get that halfway right for most cases

MeFisto94 commented 1 year ago

@neph1 Do you remember any property that specifically uses a spinner? I've only had a quick look, but we're mostly delegating down to Netbeans, maybe they add a spinner for ints but not floats in general?

neph1 commented 1 year ago

Not sure. I may have gotten the idea from the material or shader editor. Properties in general aren't manipulated that much except for spatials and filters.

neph1 commented 1 year ago

This is the particular widget that is used: FloatPanel There's also a smaller one I made for the Shader editor: FloatPanelSmall