ssbh_editor icon indicating copy to clipboard operation
ssbh_editor copied to clipboard

Drag slider precision preference

Open zrksyd opened this issue 1 year ago • 3 comments

I saw this on the to-do list and attempted to implement it myself into the AppPreferences class, but it became a mess since I had to change the parameters for a lot of functions just so I can access that value. Not sure of a good solution.

zrksyd avatar Jul 18 '22 06:07 zrksyd

This doesn't need to part of the application preferences. I was thinking of making the number of displayed digits a parameter for the DragSlider. I would need to research how much precision is actually needed for most parameter values.

ScanMountGoat avatar Jul 19 '22 01:07 ScanMountGoat

I usually round numbers to the hundredths or thousandths place when doing things like converting RGB values from 0 - 255 to 0 - 1 but that's obviously a personal preference. I honestly don't think there's gonna be a definitive Goldilocks precision value which is why I suggested letting the user adjust it.

zrksyd avatar Jul 19 '22 05:07 zrksyd

This is purely a visual thing. The DragSlider is still storing the full precision if you edit the value by clicking on it, which was fixed recently. The reason to adjust the number of displayed decimal digits is to account for different widths for the control rather than a user preference.

ScanMountGoat avatar Jul 19 '22 17:07 ScanMountGoat