增加注释
This commit is contained in:
@@ -15,11 +15,6 @@ namespace SpineViewer.Controls
|
|||||||
{
|
{
|
||||||
public partial class SpinePreviewer : UserControl
|
public partial class SpinePreviewer : UserControl
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// 画面拖放对象世界坐标源点
|
|
||||||
/// </summary>
|
|
||||||
private SFML.System.Vector2f? draggingSrc = null;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 要绑定的 Spine 列表控件
|
/// 要绑定的 Spine 列表控件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -310,6 +305,8 @@ namespace SpineViewer.Controls
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 渲染更新管理
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否还在更新画面
|
/// 是否还在更新画面
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -399,7 +396,7 @@ namespace SpineViewer.Controls
|
|||||||
|
|
||||||
var spine = spines[i];
|
var spine = spines[i];
|
||||||
|
|
||||||
spine.Update(IsUpdating ? delta : 0);
|
spine.Update(IsUpdating ? delta : 0); // 只是时间不前进, 但是坐标变换还是要更新, 否则无法移动对象
|
||||||
|
|
||||||
if (RenderSelectedOnly && !spine.IsSelected)
|
if (RenderSelectedOnly && !spine.IsSelected)
|
||||||
continue;
|
continue;
|
||||||
@@ -420,6 +417,13 @@ namespace SpineViewer.Controls
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 画面拖放对象世界坐标源点
|
||||||
|
/// </summary>
|
||||||
|
private SFML.System.Vector2f? draggingSrc = null;
|
||||||
|
|
||||||
private void SpinePreviewer_SizeChanged(object sender, EventArgs e)
|
private void SpinePreviewer_SizeChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (RenderWindow is null)
|
if (RenderWindow is null)
|
||||||
|
|||||||
Reference in New Issue
Block a user