增加文件版本显示
This commit is contained in:
@@ -88,6 +88,8 @@ namespace SpineViewer.Spine.Implementations
|
||||
atlas.Dispose();
|
||||
}
|
||||
|
||||
public override string FileVersion { get => skeletonData.Version; }
|
||||
|
||||
public override float Scale
|
||||
{
|
||||
get
|
||||
|
||||
@@ -87,6 +87,8 @@ namespace SpineViewer.Spine.Implementations
|
||||
atlas.Dispose();
|
||||
}
|
||||
|
||||
public override string FileVersion { get => skeletonData.Version; }
|
||||
|
||||
public override float Scale
|
||||
{
|
||||
get
|
||||
|
||||
@@ -86,6 +86,8 @@ namespace SpineViewer.Spine.Implementations
|
||||
atlas.Dispose();
|
||||
}
|
||||
|
||||
public override string FileVersion { get => skeletonData.Version; }
|
||||
|
||||
public override float Scale
|
||||
{
|
||||
get
|
||||
|
||||
@@ -90,6 +90,8 @@ namespace SpineViewer.Spine.Implementations
|
||||
atlas.Dispose();
|
||||
}
|
||||
|
||||
public override string FileVersion { get => skeletonData.Version; }
|
||||
|
||||
public override float Scale
|
||||
{
|
||||
get
|
||||
|
||||
@@ -88,6 +88,8 @@ namespace SpineViewer.Spine.Implementations
|
||||
atlas.Dispose();
|
||||
}
|
||||
|
||||
public override string FileVersion { get => skeletonData.Version; }
|
||||
|
||||
public override float Scale
|
||||
{
|
||||
get
|
||||
|
||||
@@ -88,6 +88,8 @@ namespace SpineViewer.Spine.Implementations
|
||||
atlas.Dispose();
|
||||
}
|
||||
|
||||
public override string FileVersion { get => skeletonData.Version; }
|
||||
|
||||
public override float Scale
|
||||
{
|
||||
get
|
||||
|
||||
@@ -88,6 +88,8 @@ namespace SpineViewer.Spine.Implementations
|
||||
atlas.Dispose();
|
||||
}
|
||||
|
||||
public override string FileVersion { get => skeletonData.Version; }
|
||||
|
||||
public override float Scale
|
||||
{
|
||||
get
|
||||
|
||||
@@ -137,7 +137,7 @@ namespace SpineViewer.Spine
|
||||
/// 获取所属版本
|
||||
/// </summary>
|
||||
[TypeConverter(typeof(VersionConverter))]
|
||||
[Category("基本信息"), DisplayName("版本")]
|
||||
[Category("基本信息"), DisplayName("运行时版本")]
|
||||
public Version Version { get; }
|
||||
|
||||
/// <summary>
|
||||
@@ -155,6 +155,12 @@ namespace SpineViewer.Spine
|
||||
[Category("基本信息"), DisplayName("名称")]
|
||||
public string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取所属文件版本
|
||||
/// </summary>
|
||||
[Category("基本信息"), DisplayName("文件版本")]
|
||||
public abstract string FileVersion { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 缩放比例
|
||||
/// </summary>
|
||||
|
||||
@@ -40,13 +40,13 @@ namespace SpineViewer.Spine
|
||||
/// </summary>
|
||||
public enum Version
|
||||
{
|
||||
[Description("v2.1.x")] V21 = 0x0201,
|
||||
[Description("v3.6.x")] V36 = 0x0306,
|
||||
[Description("v3.7.x")] V37 = 0x0307,
|
||||
[Description("v3.8.x")] V38 = 0x0308,
|
||||
[Description("v4.0.x")] V40 = 0x0400,
|
||||
[Description("v4.1.x")] V41 = 0x0401,
|
||||
[Description("v4.2.x")] V42 = 0x0402,
|
||||
[Description("v4.3.x")] V43 = 0x0403,
|
||||
[Description("2.1.x")] V21 = 0x0201,
|
||||
[Description("3.6.x")] V36 = 0x0306,
|
||||
[Description("3.7.x")] V37 = 0x0307,
|
||||
[Description("3.8.x")] V38 = 0x0308,
|
||||
[Description("4.0.x")] V40 = 0x0400,
|
||||
[Description("4.1.x")] V41 = 0x0401,
|
||||
[Description("4.2.x")] V42 = 0x0402,
|
||||
[Description("4.3.x")] V43 = 0x0403,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user