Fix the highlight part of the slider disappearing after an abnormal range is assigned.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user