Beispiel #1
0
 public NodeEditorDat(string _path, List <DNode> _nodes, int _connectionIDCount, ConnectionDict dict, SDict propertyDictionary)
 {
     savePath          = _path;
     nodes             = _nodes;
     connectionIDCount = _connectionIDCount;
     connections       = dict;
     propertyDict      = propertyDictionary;
 }
Beispiel #2
0
 public void ConnectionOccurred(ConnectionDict dict)
 {
     displayConnections.Clear();
     for (int i = 0; i < connectedIDS.Count; i++)
     {
         displayConnections.Add(dict.GetValue(connectedIDS [i]));
     }
 }
Beispiel #3
0
    private void OnGUI()
    {
        if (wordWrap.wordWrap == false)
        {
            wordWrap.wordWrap = true;
        }

        Rect labeler = o(heading, 10, 50, 400, 300);

        GUI.Label(labeler, "Shift + Left Click = Delete \n" +
                  " Mouse 3 Drag = Pan \n" +
                  " Shift + Mouse 3 on Input = Delete Connections \n" +
                  " Shift + Mouse Down on Node = Delete Node \n" +
                  " Alt + Mouse 3 = REFRESH \n" +
                  " RIGHT MOUSE = Node Selection \n" +
                  " Alt + Click = INSPECTOR \n" +
                  " Top Left Click Node = FOLD TOGGLE \n" +
                  " REFRESH to Re-Center \n" +
                  " Shift + Spacebar x 2 = REFRESH \n" +
                  " Shift + Mouse 3 = FOLD NODES \n" +
                  " Shift + Mouse 3 + Drag Parent = DRAG FOLD \n " +
                  " ALT + MOVE NODE = DRAG ALL NODES WITH IT", wordWrap);

        NodeHandler();
        OnBaseScreen();
        Inspector();
        OnDetectClick();
        ScreenEventHandler();
        Repaint();


        if (connections == null)
        {
            connections = new ConnectionDict();
        }
    }