feat: spine exporter localize
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using FFMpegCore;
|
||||
using SpineViewer.Utils;
|
||||
using SpineViewer.Utils.Localize;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -69,33 +70,43 @@ namespace SpineViewer.Spine.SpineExporter
|
||||
/// </summary>
|
||||
[StringEnumConverter.StandardValues("libwebp_anim", "libwebp", Customizable = true)]
|
||||
[TypeConverter(typeof(StringEnumConverter))]
|
||||
[Category("[3] 格式参数"), DisplayName("编码器"), Description("-c:v, 要使用的编码器")]
|
||||
public string Codec { get => Exporter.Codec; set => Exporter.Codec = value; }
|
||||
[LocalizedCategory(typeof(Properties.Resources), "categoryFormatParameters")]
|
||||
[LocalizedDisplayName(typeof(Properties.Resources), "displayEncoder")]
|
||||
[LocalizedDescription(typeof(Properties.Resources), "descAvifEncoder")]
|
||||
public string Codec { get => Exporter.Codec; set => Exporter.Codec = value; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否无损
|
||||
/// </summary>
|
||||
[Category("[3] 格式参数"), DisplayName("无损"), Description("-lossless, 0 表示有损, 1 表示无损")]
|
||||
public bool Lossless { get => Exporter.Lossless; set => Exporter.Lossless = value; }
|
||||
/// <summary>
|
||||
/// 是否无损
|
||||
/// </summary>
|
||||
[LocalizedCategory(typeof(Properties.Resources), "categoryFormatParameters")]
|
||||
[LocalizedDisplayName(typeof(Properties.Resources), "displayLoseless")]
|
||||
[LocalizedDescription(typeof(Properties.Resources), "descLoseless")]
|
||||
public bool Lossless { get => Exporter.Lossless; set => Exporter.Lossless = value; }
|
||||
|
||||
/// <summary>
|
||||
/// CRF
|
||||
/// </summary>
|
||||
[Category("[3] 格式参数"), DisplayName("质量"), Description("-quality, 取值范围 0-100, 默认值 75")]
|
||||
public int Quality { get => Exporter.Quality; set => Exporter.Quality = value; }
|
||||
/// <summary>
|
||||
/// CRF
|
||||
/// </summary>
|
||||
[LocalizedCategory(typeof(Properties.Resources), "categoryFormatParameters")]
|
||||
[LocalizedDisplayName(typeof(Properties.Resources), "displayQuality")]
|
||||
[LocalizedDescription(typeof(Properties.Resources), "descQuality")]
|
||||
public int Quality { get => Exporter.Quality; set => Exporter.Quality = value; }
|
||||
|
||||
/// <summary>
|
||||
/// 像素格式
|
||||
/// </summary>
|
||||
[StringEnumConverter.StandardValues("yuv420p", "yuva420p", Customizable = true)]
|
||||
[TypeConverter(typeof(StringEnumConverter))]
|
||||
[Category("[3] 格式参数"), DisplayName("像素格式"), Description("-pix_fmt, 要使用的像素格式")]
|
||||
public string PixelFormat { get => Exporter.PixelFormat; set => Exporter.PixelFormat = value; }
|
||||
[LocalizedCategory(typeof(Properties.Resources), "categoryFormatParameters")]
|
||||
[LocalizedDisplayName(typeof(Properties.Resources), "displayPixelFormat")]
|
||||
[LocalizedDescription(typeof(Properties.Resources), "descPixelFormat")]
|
||||
public string PixelFormat { get => Exporter.PixelFormat; set => Exporter.PixelFormat = value; }
|
||||
|
||||
/// <summary>
|
||||
/// 透明度阈值
|
||||
/// </summary>
|
||||
[Category("[3] 格式参数"), DisplayName("循环次数"), Description("-loop, 循环次数, 0 无限循环, 取值范围 [0, 65535]")]
|
||||
public int Loop { get => Exporter.Loop; set => Exporter.Loop = value; }
|
||||
/// <summary>
|
||||
/// 透明度阈值
|
||||
/// </summary>
|
||||
[LocalizedCategory(typeof(Properties.Resources), "categoryFormatParameters")]
|
||||
[LocalizedDisplayName(typeof(Properties.Resources), "displayLoopCount")]
|
||||
[LocalizedDescription(typeof(Properties.Resources), "descLoopCount")]
|
||||
public int Loop { get => Exporter.Loop; set => Exporter.Loop = value; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user