SamsDRGMods / DRGLib

A library for DRG modding
MIT License
17 stars 3 forks source link

Float slider UI template #39

Closed Henri-J-Norden closed 2 years ago

Henri-J-Norden commented 2 years ago

Inputs

MinValue, MaxValue [float]

Defines the range of the slider: MinValue <= SelectedValue <= MaxValue

StartingValue [float]

Default initial value of the slider

LogScale [bool]

RoundToDecimalPlaces [int]

Float precision in decimal places

LIB_F_FloatSlider includes rounding functions RoundToDecimalPlaces(float, decimalPlaces=int) -> float and ToStringWithPrecision(float, decimalPlaces=int) -> string.

samamstar commented 2 years ago

Discussion of this pull request was performed on the DRGModding discord server, under the following thread: https://discord.com/channels/676880716142739467/968893000535113811/968894581984862329

samamstar commented 2 years ago

Approved, but I'll make some modifications before release (Specifically, Setting max/min at runtime would be useful)