Exemple #1
0
        public OutputBase AddOutput(OutputBase output, UIComponent uiComponent = null)
        {
            int index = OutputsSet.Count;

            output.Index       = index;
            output.UIComponent = uiComponent;
            OutputsSet.Add(index, output);
            if (output.Signature is ActionSignature)
            {
                HasActionOutput = true;
            }
            return(output);
        }
Exemple #2
0
 private void AddOutputPinOnKeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.Subtract)
     {
         if (ExtraVariableOutputs > 0)
         {
             int index = OutputsSet.Count - 1;
             var io    = OutputsSet[index];
             OutputsSet.Remove(index);
             RenderingEngine.CurrentProject.RemoveConnection(io);
             ExtraVariableOutputs--;
         }
     }
 }