예제 #1
0
    public void AddConnection(string fromWindowID, string toWindowID, UIWindowConnection connection)
    {
        UIWindowTreeNode fromNode = GetNode(fromWindowID);

        if (fromNode == null)
        {
            Debug.LogError(string.Format("The tree: {0} doesnt has window: {1}", ToString(), fromWindowID));
            return;
        }
        UIWindowTreeNode toNode = GetNode(toWindowID);

        if (toNode == null)
        {
            Debug.LogError(string.Format("The tree: {0} doesnt has window: {1}", ToString(), toWindowID));
            return;
        }

        _connections.Add(new UIWIndowTreeNodeConnection(fromNode, toNode, connection));
    }
예제 #2
0
 public UIWIndowTreeNodeConnection(UIWindowTreeNode fromNode, UIWindowTreeNode toNode, UIWindowConnection connection)
 {
     _fromNode   = fromNode;
     _toNode     = toNode;
     _connection = connection;
 }
예제 #3
0
 public void SetCurrWindowNode(string windowID)
 {
     CurrNode = _nodes.Find(n => n.WindowID == windowID);
 }
예제 #4
0
    private IEnumerator _ChangeWindow(UIWindow currWindow, UIWindowSwitcher closeSwitcher, UIWindow nextWindow, UIWindowSwitcher openSwitcher, UIWindowTreeNode nextNode)
    {
        yield return(_CloseWindowInternal(currWindow, closeSwitcher));

        WindowTree.CurrNode = nextNode;

        yield return(_OpenWindowInternal(nextWindow, openSwitcher));
    }