diff --git a/SpineViewer/Spine/Spine.cs b/SpineViewer/Spine/Spine.cs index 5fd964f..436ac60 100644 --- a/SpineViewer/Spine/Spine.cs +++ b/SpineViewer/Spine/Spine.cs @@ -230,6 +230,8 @@ namespace SpineViewer.Spine public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { preview?.Dispose(); } + #region 属性 | 基本信息 + /// /// 获取所属版本 /// @@ -267,6 +269,10 @@ namespace SpineViewer.Spine [Category("基本信息"), DisplayName("文件版本")] public abstract string FileVersion { get; } + #endregion + + #region 属性 | 变换 + /// /// 缩放比例 /// @@ -292,12 +298,18 @@ namespace SpineViewer.Spine [Category("变换"), DisplayName("垂直翻转")] public abstract bool FlipY { get; set; } + #endregion + + #region 属性 | 画面 + /// /// 是否使用预乘Alpha /// [Category("画面"), DisplayName("预乘Alpha通道")] public bool UsePremultipliedAlpha { get; set; } = true; + #endregion + /// /// 包含的所有动画名称 /// @@ -311,6 +323,8 @@ namespace SpineViewer.Spine [Browsable(false)] public string DefaultAnimationName { get => animationNames.Last(); } + #region 属性 | 动画 + /// /// 当前动画名称, 如果设置的动画不存在则忽略 /// @@ -324,6 +338,8 @@ namespace SpineViewer.Spine [Category("动画"), DisplayName("当前动画时长")] public float CurrentAnimationDuration { get => GetAnimationDuration(CurrentAnimation); } + #endregion + /// /// 骨骼包围盒 ///