using System; namespace Cryville.Crtr.Config { public class PVPNumber : PVPNumberBase { protected override void OnValueUpdated() { base.OnValueUpdated(); if (Range != null && Range.Length == 2) { var min = (double)Range[0]; var max = (double)Range[1]; SetRatio((float)((Convert.ToDouble(RawValue) - min) / (max - min))); } } protected override double GetValue(double ratio, float deltaTime, double min, double max) { // if (LogarithmicMode) throw new NotImplementedException(); return (1 - ratio) * min + ratio * max; } } }