Beispiel #1
0
    //for opening the window
    static public void OpenWindow(Node n = null)
    {
        node = n;

        if (node != null)
        {
            text       = node._text;
            name       = node._name;
            accomplish = node._accomplish;
            reset      = node._reset;

            precalls  = node._precalls;
            postcalls = node._postcalls;

            options = node._options;
        }
        windows = new List <Rect>();
        for (int i = 0; i < node._options.Count; i++)
        {
            windows.Add(new Rect(10, 10, 100, 100));
        }

        window         = (NodeSettings)GetWindow(typeof(NodeSettings));
        window.minSize = new Vector2(300, 300);
        window.Show();
    }