Polyfrost / OneConfig

Next generation configuration library for Minecraft
https://polyfrost.org/projects/oneconfig
Other
240 stars 24 forks source link

Documentation fasely states that `step` in `Slider` is a float #359

Open jumanji144 opened 2 months ago

jumanji144 commented 2 months ago

Original reporter & ticket id

No response

Category

API

Bug description

The Slider class as in the latest version uses a int step, but the documentation shows it like the following:

@Slider(
    name = "You slide me right round baby right round",
    min = 0f, max = 100f        // min and max values for the slider
    // if you like, you can use step to set a step value for the slider,
    // giving it little steps that the slider snaps to.
    step = 10f
)

Where step is shown to support floats.

Steps to reproduce

Anything else?

I would like it that step is able to be a float