コード例 #1
0
        private void Node(TreeNode_Editor node, int indentLevel, int openMask)
        {
            if (node.nodeType == EditTreeNodeType.TerminalValue)
            {
                node.DoSpecialPreElements(this);
                OpenCloseWidget(node, indentLevel, openMask);
                NodeLabelLeft(node, indentLevel);
                WidgetRow widgetRow = new WidgetRow(LabelWidth, curY);
                ControlButtonsRight(node, widgetRow);
                ValueEditWidgetRight(node, widgetRow.FinalX);
                EndLine();
                return;
            }
            OpenCloseWidget(node, indentLevel, openMask);
            NodeLabelLeft(node, indentLevel);
            WidgetRow widgetRow2 = new WidgetRow(LabelWidth, curY);

            ControlButtonsRight(node, widgetRow2);
            ExtraInfoText(node, widgetRow2);
            EndLine();
            if (node.IsOpen(openMask))
            {
                ContentLines(node, indentLevel + 1);
            }
            if (node.nodeType == EditTreeNodeType.ListRoot)
            {
                node.CheckLatentDelete();
            }
        }
コード例 #2
0
 private void Node(TreeNode_Editor node, int indentLevel, int openMask)
 {
     if (node.nodeType == EditTreeNodeType.TerminalValue)
     {
         node.DoSpecialPreElements(this);
         base.OpenCloseWidget(node, indentLevel, openMask);
         this.NodeLabelLeft(node, indentLevel);
         WidgetRow widgetRow = new WidgetRow(this.LabelWidth, this.curY, UIDirection.RightThenUp, 99999f, 4f);
         this.ControlButtonsRight(node, widgetRow);
         this.ValueEditWidgetRight(node, widgetRow.FinalX);
         base.EndLine();
     }
     else
     {
         base.OpenCloseWidget(node, indentLevel, openMask);
         this.NodeLabelLeft(node, indentLevel);
         WidgetRow widgetRow2 = new WidgetRow(this.LabelWidth, this.curY, UIDirection.RightThenUp, 99999f, 4f);
         this.ControlButtonsRight(node, widgetRow2);
         this.ExtraInfoText(node, widgetRow2);
         base.EndLine();
         if (node.IsOpen(openMask))
         {
             this.ContentLines(node, indentLevel + 1);
         }
         if (node.nodeType == EditTreeNodeType.ListRoot)
         {
             node.CheckLatentDelete();
         }
     }
 }