namespace UnityEditor.Recorder
{
    [CustomPropertyDrawer(typeof(FrameRateType))]
    class FrameRateProperyDrawer : EnumProperyDrawer<FrameRateType>
    {
        protected override string ToLabel(FrameRateType value)
        {
            switch (value)
            {
                case FrameRateType.FR_23:
                    return "23.97";
                case FrameRateType.FR_24:
                    return "Film (24)";
                case FrameRateType.FR_25:
                    return "PAL (25)";
                case FrameRateType.FR_29:
                    return "NTSC (29.97)";
                case FrameRateType.FR_30:
                    return "30";
                case FrameRateType.FR_50:
                    return "50";
                case FrameRateType.FR_59:
                    return "59.94";
                case FrameRateType.FR_60:
                    return "60";
                case FrameRateType.FR_CUSTOM:
                    return "Custom";

                default:
                    return "unknown";
            }
        }
    }
}
