-
Notifications
You must be signed in to change notification settings - Fork 241
Closed
Description
Trying to set the PartModuleFields for the DLCs robotic parts (ie. Target Angle), causes values to be clamped between 0 and 100 and rounded to the nearest integer. This is wrong for most sliders in the new DLC.
Cause of the issue seems to be
| val = KOSMath.ClampToIndent(val, range.minValue, range.maxValue, range.stepIncrement); |
UI_FloatRange claims that its range is always 0 to 100 with a step-size of 1.
Ignoring the clamp entirely seem to fix the issue and still cause values to be properly converted to the UIs possible values, maybe Squad moved the logic from the UI to the actual API, causing this step to be unnecessary on kOSs side?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels