public static DialogBeginningNodeDisplayer CreateDisplayerFor(DialogBeginningWireNode node)
        {
            DialogBeginningNodeDisplayer nodeRenderer = new DialogBeginningNodeDisplayer(node)
            {
                WindowRect = new Rect(node.DisplayerPosition.x, node.DisplayerPosition.y, 270, 100)
            };

            return(nodeRenderer);
        }
        public static DialogBeginningNodeDisplayer CreateDialogBeginningDisplayer(Vector2 position)
        {
            DialogBeginningWireNode node = new DialogBeginningWireNode(DialogEditor.Instance.EditingDialog)
            {
                NodeName = "Dialog beginning"
            };

            DialogEditor.InitializeNode(ref node);

            DialogBeginningNodeDisplayer nodeRenderer = new DialogBeginningNodeDisplayer(node)
            {
                WindowRect = new Rect(position.x, position.y, 270, 100)
            };

            return(nodeRenderer);
        }
 public static DialogBeginningNodeDisplayer CreateDisplayer(this DialogBeginningWireNode node)
 {
     return(DialogBeginningNodeDisplayer.CreateDisplayerFor(node));
 }