Esempio n. 1
0
        public static ChooseReplyNodeDisplayer CreateDisplayerFor(ChooseReplyWireNode node)
        {
            ChooseReplyNodeDisplayer nodeRenderer = new ChooseReplyNodeDisplayer(node)
            {
                WindowRect = new Rect(node.DisplayerPosition.x, node.DisplayerPosition.y, 240, 100)
            };

            return(nodeRenderer);
        }
Esempio n. 2
0
        public static ChooseReplyNodeDisplayer CreateChooseReplyNodeDisplayer(Vector2 position)
        {
            ChooseReplyWireNode node = new ChooseReplyWireNode(DialogEditor.Instance.EditingDialog)
            {
                NodeName = "Choice"
            };

            DialogEditor.InitializeNode(ref node);
            node.Outputs[0].PinName = "Choice";

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

            nodeRenderer.AddOutput();
            return(nodeRenderer);
        }
 public static ChooseReplyNodeDisplayer CreateDisplayer(this ChooseReplyWireNode node)
 {
     return(ChooseReplyNodeDisplayer.CreateDisplayerFor(node));
 }