设置分组
This commit is contained in:
@@ -142,20 +142,20 @@ namespace NBF
|
||||
range.SetValue((int)Slider.value);
|
||||
UpdateValueText();
|
||||
}
|
||||
// else if (Option is RangeOptionFloat rangeOptionFloat)
|
||||
// {
|
||||
// rangeOptionFloat.SetValue((float)Math.Round(Slider.value, 1));
|
||||
// // Slider
|
||||
// SliderTitle.text = Math.Round(rangeOptionFloat.GetValue(), 1).ToString(CultureInfo.InvariantCulture);
|
||||
// Debug.LogError(Slider.value);
|
||||
// }
|
||||
}
|
||||
|
||||
private void UpdateValueText()
|
||||
{
|
||||
if (Option is RangeOption range)
|
||||
{
|
||||
TextSliderValue.text = Math.Round(range.GetValue() / 10f, 1).ToString(CultureInfo.InvariantCulture);
|
||||
if (range.ShowRate > 0)
|
||||
{
|
||||
TextSliderValue.text = Math.Round(range.GetValue() / 10f, 1).ToString(CultureInfo.InvariantCulture);
|
||||
}
|
||||
else
|
||||
{
|
||||
TextSliderValue.text = range.GetValue().ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user