mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
更改了节点控件的布局
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Serein.Library
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否保护参数(目前仅视觉效果参数,不影响运行实现,后续将设置作用在运行逻辑中)
|
||||
/// 是否保护参数
|
||||
/// </summary>
|
||||
[PropertyInfo(IsNotification = true)]
|
||||
private bool _isProtectionParameter;
|
||||
|
||||
@@ -106,6 +106,9 @@ namespace Serein.Library
|
||||
ParameterData = parameterData.ToArray(),
|
||||
ErrorNodes = errorNodes.ToArray(),
|
||||
Position = Position,
|
||||
IsProtectionParameter = this.MethodDetails.IsProtectionParameter,
|
||||
IsInterrupt = this.DebugSetting.IsInterrupt,
|
||||
IsEnable = this.DebugSetting.IsEnable,
|
||||
};
|
||||
nodeInfo = SaveCustomData(nodeInfo);
|
||||
return nodeInfo;
|
||||
@@ -130,6 +133,10 @@ namespace Serein.Library
|
||||
this.Guid = nodeInfo.Guid;
|
||||
this.Position = nodeInfo.Position ?? new PositionOfUI(0, 0);// 加载位置信息
|
||||
var md = this.MethodDetails; // 当前节点的方法说明
|
||||
this.MethodDetails.IsProtectionParameter = nodeInfo.IsProtectionParameter; // 保护参数
|
||||
this.DebugSetting.IsInterrupt = nodeInfo.IsInterrupt; // 是否中断
|
||||
this.DebugSetting.IsEnable = nodeInfo.IsEnable; // 是否使能
|
||||
|
||||
if (md != null)
|
||||
{
|
||||
if(md.ParameterDetailss == null)
|
||||
|
||||
@@ -241,10 +241,23 @@ namespace Serein.Library
|
||||
|
||||
public PositionOfUI Position { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否选中(暂时无效)
|
||||
/// 是否中断
|
||||
/// </summary>
|
||||
public bool IsSelect { get; set; }
|
||||
public bool IsInterrupt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否使能
|
||||
/// </summary>
|
||||
public bool IsEnable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否保护参数
|
||||
/// </summary>
|
||||
public bool IsProtectionParameter { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 自定义数据
|
||||
|
||||
Reference in New Issue
Block a user