Fix the highlight part of the slider disappearing after an abnormal range is assigned.

This commit is contained in:
2023-11-30 17:03:05 +08:00
parent 5d884c1c7b
commit 05db2cc32e

View File

@@ -15,6 +15,7 @@ namespace Cryville.Crtr.Config.UI {
float ratio = (float)((value - min) / (max - min));
SetRatio(ratio);
m_on.anchorMax = new Vector2(ratio, m_on.anchorMax.y);
m_on.anchoredPosition = Vector2.zero;
}
protected override double GetValue(double ratio, float deltaTime, double min, double max) {
// if (LogarithmicMode) throw new NotImplementedException();