Ejemplo n.º 1
0
 private void DeleteNoodlesBetween(INode node, InputProcedural input)
 {
     if (input.ConnectedNode == node)
     {
         input.ConnectedNode = null;
     }
 }
Ejemplo n.º 2
0
        public void OnDropNoodle(InputProcedural nodeInput)
        {
            TempNoodle.Connected = false;

            if (NodeToDrag is null)
            {
                return;
            }

            if (NodeToDrag.IsDependentOn(nodeInput))
            {
                toastService.ShowError(
                    "Cyclical dependencies would create a rift in the space-time continuum and are therefore not allowed. " +
                    "If you want to use the same node multiple times in a row, connect it to multiple inputs of a 'Concatenate' node.",
                    "Can't connect these nodes");
            }
            else
            {
                nodeInput.ConnectedNode = NodeToDrag;
            }

            NodeToDrag = null;
        }