Exemple #1
0
    public bool drawNodeChildren(Task task, Vector2 offset, float graphZoom, bool disabled)
    {
        //绘制自己
        task.DrawNode(offset,  disabled);

        //绘制外接口
        foreach (var item in task.OutLinks)
        {
            item.Value.DrawLine(offset, graphZoom);//绘制外接口的连线

            foreach (var child in item.Value.Childs)
            {//绘制子模块
                drawNodeChildren(child, offset, graphZoom, disabled);
            }
        }
        return true;
    }