Page 1 of 1

[0.18.x] Creating a new map -> setting slider behaviour

Posted: Tue Jul 28, 2020 8:30 pm
by lovely_santa
Hi, while modding angels I noticed this weird behavior on the sliders. I can reproduce this in vanilla as well.

Steps to reproduce goes as follows:
  1. Load up the game, modded or vanilla
  2. Choose new game -> freeplay
  3. Choose any slider to test this behavior
  4. When 'picking' the slider, it shows the current value of the slider when hovered over, for ore this says "17%" as of writing.
  5. Slide the slider to the left, every increment shifting to the left says "100%, 75%, 50%, ..." Assume I leave it at 50%
  6. Now let's slide that same slider to the middle, every increment shifting it says "33%, 50%, 75%"
  7. And when sliding it from the middle to the right, we get the same behavior: "100%, 133%, 150%"
  8. And again back to the middle: "200%, 150%, 133%"
So it seems the slider is changing absolute values, resulting in the increments to be 'off'.

Kind regards
lovely_santa