From fcc21d63b0d40262953f106445f882ae6e3a762f Mon Sep 17 00:00:00 2001 From: ww-rm Date: Wed, 26 Mar 2025 18:39:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=92=E5=88=97=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SpineViewer/Dialogs/ExportDialog.cs | 2 +- SpineViewer/Exporter/ExportArgs.cs | 10 +++++----- .../Implementations/ExportArgs/FrameExportArgs.cs | 6 +++--- .../ExportArgs/FrameSequenceExportArgs.cs | 2 +- .../Implementations/ExportArgs/GifExportArgs.cs | 4 ++-- .../Implementations/ExportArgs/VideoExportArgs.cs | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/SpineViewer/Dialogs/ExportDialog.cs b/SpineViewer/Dialogs/ExportDialog.cs index 69bbf4c..00858e1 100644 --- a/SpineViewer/Dialogs/ExportDialog.cs +++ b/SpineViewer/Dialogs/ExportDialog.cs @@ -39,7 +39,7 @@ namespace SpineViewer.Dialogs PropertyInfo? labelProp = category.GetType().GetProperty("Label", BindingFlags.Instance | BindingFlags.Public); if (labelProp == null) continue; string? label = labelProp.GetValue(category) as string; - if (label != "导出") continue; + if (label != "[1] 导出") continue; // 获取该分组下的所有属性项 PropertyInfo? gridItemsProp = category.GetType().GetProperty("GridItems", BindingFlags.Instance | BindingFlags.Public); diff --git a/SpineViewer/Exporter/ExportArgs.cs b/SpineViewer/Exporter/ExportArgs.cs index 61f6043..7772b88 100644 --- a/SpineViewer/Exporter/ExportArgs.cs +++ b/SpineViewer/Exporter/ExportArgs.cs @@ -60,32 +60,32 @@ namespace SpineViewer.Exporter /// 输出文件夹 /// [Editor(typeof(FolderNameEditor), typeof(UITypeEditor))] - [Category("导出"), DisplayName("输出文件夹"), Description("逐个导出时可以留空,将逐个导出到模型自身所在目录")] + [Category("[1] 导出"), DisplayName("输出文件夹"), Description("逐个导出时可以留空,将逐个导出到模型自身所在目录")] public string? OutputDir { get; set; } = null; /// /// 导出单个 /// - [Category("导出"), DisplayName("导出单个"), Description("是否将模型在同一个画面上导出单个文件,否则逐个导出模型")] + [Category("[1] 导出"), DisplayName("导出单个"), Description("是否将模型在同一个画面上导出单个文件,否则逐个导出模型")] public bool ExportSingle { get; set; } = false; /// /// 画面分辨率 /// [TypeConverter(typeof(SizeConverter))] - [Category("导出"), DisplayName("分辨率"), Description("画面的宽高像素大小,请在预览画面参数面板进行调整")] + [Category("[1] 导出"), DisplayName("分辨率"), Description("画面的宽高像素大小,请在预览画面参数面板进行调整")] public Size Resolution { get; } /// /// 渲染视窗 /// - [Category("导出"), DisplayName("视图"), Description("画面的视图参数,请在预览画面参数面板进行调整")] + [Category("[1] 导出"), DisplayName("视图"), Description("画面的视图参数,请在预览画面参数面板进行调整")] public SFML.Graphics.View View { get; } /// /// 是否仅渲染选中 /// - [Category("导出"), DisplayName("仅渲染选中"), Description("是否仅导出选中的模型,请在预览画面参数面板进行调整")] + [Category("[1] 导出"), DisplayName("仅渲染选中"), Description("是否仅导出选中的模型,请在预览画面参数面板进行调整")] public bool RenderSelectedOnly { get; } /// diff --git a/SpineViewer/Exporter/Implementations/ExportArgs/FrameExportArgs.cs b/SpineViewer/Exporter/Implementations/ExportArgs/FrameExportArgs.cs index 7835bc2..f4086da 100644 --- a/SpineViewer/Exporter/Implementations/ExportArgs/FrameExportArgs.cs +++ b/SpineViewer/Exporter/Implementations/ExportArgs/FrameExportArgs.cs @@ -20,7 +20,7 @@ namespace SpineViewer.Exporter.Implementations.ExportArgs /// 单帧画面格式 /// [TypeConverter(typeof(ImageFormatConverter))] - [Category("单帧画面"), DisplayName("图像格式")] + [Category("[2] 单帧画面"), DisplayName("图像格式")] public ImageFormat ImageFormat { get => imageFormat; @@ -35,14 +35,14 @@ namespace SpineViewer.Exporter.Implementations.ExportArgs /// /// 文件名后缀 /// - [Category("单帧画面"), DisplayName("文件名后缀"), Description("与图像格式匹配的文件名后缀")] + [Category("[2] 单帧画面"), DisplayName("文件名后缀"), Description("与图像格式匹配的文件名后缀")] public string FileSuffix { get => imageFormat.GetSuffix(); } /// /// DPI /// [TypeConverter(typeof(SizeFConverter))] - [Category("单帧画面"), DisplayName("DPI"), Description("导出图像的每英寸像素数,用于调整图像的物理尺寸")] + [Category("[2] 单帧画面"), DisplayName("DPI"), Description("导出图像的每英寸像素数,用于调整图像的物理尺寸")] public SizeF DPI { get => dpi; diff --git a/SpineViewer/Exporter/Implementations/ExportArgs/FrameSequenceExportArgs.cs b/SpineViewer/Exporter/Implementations/ExportArgs/FrameSequenceExportArgs.cs index 5da5d86..43c0175 100644 --- a/SpineViewer/Exporter/Implementations/ExportArgs/FrameSequenceExportArgs.cs +++ b/SpineViewer/Exporter/Implementations/ExportArgs/FrameSequenceExportArgs.cs @@ -20,7 +20,7 @@ namespace SpineViewer.Exporter.Implementations.ExportArgs /// 文件名后缀 /// [TypeConverter(typeof(SFMLImageFileSuffixConverter))] - [Category("帧序列参数"), DisplayName("文件名后缀"), Description("帧文件的后缀,同时决定帧图像格式")] + [Category("[3] 帧序列参数"), DisplayName("文件名后缀"), Description("帧文件的后缀,同时决定帧图像格式")] public string FileSuffix { get; set; } = ".png"; } } diff --git a/SpineViewer/Exporter/Implementations/ExportArgs/GifExportArgs.cs b/SpineViewer/Exporter/Implementations/ExportArgs/GifExportArgs.cs index ca7785f..f6c52ff 100644 --- a/SpineViewer/Exporter/Implementations/ExportArgs/GifExportArgs.cs +++ b/SpineViewer/Exporter/Implementations/ExportArgs/GifExportArgs.cs @@ -22,14 +22,14 @@ namespace SpineViewer.Exporter.Implementations.ExportArgs /// /// 调色板最大颜色数量 /// - [Category("GIF 参数"), DisplayName("调色板最大颜色数量"), Description("设置调色板使用的最大颜色数量, 越多则色彩保留程度越高")] + [Category("[3] GIF 参数"), DisplayName("调色板最大颜色数量"), Description("设置调色板使用的最大颜色数量, 越多则色彩保留程度越高")] public uint MaxColors { get => maxColors; set => maxColors = Math.Clamp(value, 2, 256); } private uint maxColors = 256; /// /// 透明度阈值 /// - [Category("GIF 参数"), DisplayName("透明度阈值"), Description("小于该值的像素点会被认为是透明像素")] + [Category("[3] GIF 参数"), DisplayName("透明度阈值"), Description("小于该值的像素点会被认为是透明像素")] public byte AlphaThreshold { get => alphaThreshold; set => alphaThreshold = value; } private byte alphaThreshold = 128; diff --git a/SpineViewer/Exporter/Implementations/ExportArgs/VideoExportArgs.cs b/SpineViewer/Exporter/Implementations/ExportArgs/VideoExportArgs.cs index 78c2d43..752872a 100644 --- a/SpineViewer/Exporter/Implementations/ExportArgs/VideoExportArgs.cs +++ b/SpineViewer/Exporter/Implementations/ExportArgs/VideoExportArgs.cs @@ -17,7 +17,7 @@ namespace SpineViewer.Exporter.Implementations.ExportArgs /// /// 导出时长 /// - [Category("视频参数"), DisplayName("时长"), Description("可以从模型列表查看动画时长, 如果小于 0, 则在逐个导出时每个模型使用各自的当前动画时长")] + [Category("[2] 视频参数"), DisplayName("时长"), Description("可以从模型列表查看动画时长, 如果小于 0, 则在逐个导出时每个模型使用各自的当前动画时长")] public float Duration { get => duration; @@ -28,7 +28,7 @@ namespace SpineViewer.Exporter.Implementations.ExportArgs /// /// 帧率 /// - [Category("视频参数"), DisplayName("帧率"), Description("每秒画面数")] + [Category("[2] 视频参数"), DisplayName("帧率"), Description("每秒画面数")] public float FPS { get; set; } = 60; public override string? Validate()