public static GetVariableNodeDisplayer CreateDisplayerFor(GetVariableWireNode node)
        {
            GetVariableNodeDisplayer nodeRenderer = new GetVariableNodeDisplayer(node)
            {
                WindowRect = new Rect(node.DisplayerPosition.x, node.DisplayerPosition.y, 220, 70)
            };

            return(nodeRenderer);
        }
        public static GetVariableNodeDisplayer CreateGetVariableNodeDisplayer(Vector2 position)
        {
            GetVariableWireNode node = new GetVariableWireNode(DialogEditor.Instance.EditingDialog)
            {
                NodeName = "Get variable"
            };

            DialogEditor.InitializeNode(ref node);

            node.Outputs.Add(new OutputWirePin(node, DialogEditor.Instance.EditingDialog)
            {
                PinName  = "Variable",
                DataType = typeof(Variable)
            });

            GetVariableNodeDisplayer nodeRenderer = new GetVariableNodeDisplayer(node)
            {
                WindowRect = new Rect(position.x, position.y, 220, 70)
            };

            return(nodeRenderer);
        }