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)); }
public UIWIndowTreeNodeConnection(UIWindowTreeNode fromNode, UIWindowTreeNode toNode, UIWindowConnection connection) { _fromNode = fromNode; _toNode = toNode; _connection = connection; }
public void SetCurrWindowNode(string windowID) { CurrNode = _nodes.Find(n => n.WindowID == windowID); }
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)); }