Page 1 of 1

Let us choose the step size on sliders

Posted: Mon Dec 09, 2024 2:24 am
by Tinyboss
TL;DR
Let us choose the increment when setting a numerical value via sliders.
What?
Here's my mockup. Note that the blue button is NOT selected in this pic...I didn't do the best job with that part, but hopefully it still conveys the idea. In the pic, we're setting a logistic request. The stack size is 50, but we've clicked the 1 button so that we can set a much smaller quantity, just 2 items.

12-08-2024, 20-26-07.png
12-08-2024, 20-26-07.png (5.96 KiB) Viewed 261 times


The blue button, which is always initially selected, has the same value as what we currently get for the slider:
  • When setting a logistics request, it's the stack size.
  • For a platform request, it's whatever that increment is now (not sure off the top of my head).
  • For a generic number, like in a circuit condition, it does the same logarithm-ish thing it does now (1-9, 10-90, etc). Not sure what the button would display but I'm sure something workable can be found. (Maybe it's better just to not have a blue button in this case, and have the user choose their scale. But it kind of goes against the next point below, so I'm torn.)
The fact that the default setting is what we get in game now means that if we never interact with the buttons, there is no change at all to the way things work. That's a good thing.
Why?
It's frustrating how often I have to reach for the number keys when setting request quantities, especially on platforms. This would let us choose any increment we want, without moving our hands.
Stretch goals
It would be great if I could choose a value of 2000, then click the 100 button and use the slider to bump it up to 2500. That could have a lot of edge cases, so I don't know if it can be done cleanly, but it sure would be sweet.