mirror of
https://github.com/peng-zhihui/ElectronBot.git
synced 2026-10-22 07:06:06 +08:00
25 lines
571 B
C#
25 lines
571 B
C#
namespace UIWidgets
|
|
{
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// RangeSliderFloat scale.
|
|
/// </summary>
|
|
[RequireComponent(typeof(RangeSliderFloat))]
|
|
public class RangeSliderScaleFloat : RangeSliderScaleBase<float>
|
|
{
|
|
/// <inheritdoc/>
|
|
public override void UpdateScale()
|
|
{
|
|
if (Slider.Type == RangeSliderType.DisableHandleOverlay)
|
|
{
|
|
Scale.Clear();
|
|
Scale.gameObject.SetActive(false);
|
|
return;
|
|
}
|
|
|
|
Scale.gameObject.SetActive(true);
|
|
Scale.Set(Value2MarkDataDelegate, Slider.LimitMin, Slider.LimitMax, Slider.ValueMin, Slider.ValueMax);
|
|
}
|
|
}
|
|
} |