/// <summary> /// 开启UI /// </summary> /// <param name="windowName"></param> /// <param name="nodeType"></param> /// <returns></returns> public WindowNode OpenWindow(string windowName, BaseNodeType nodeType = BaseNodeType.Normal, bool matchIphoneX = true) { return(OpenWindow(new WindowNodeInitParam(windowName, matchIphoneX) { NodeType = nodeType })); }
public WindowNode(BaseNodeType nodeType) { ChildWindows = new List <WindowNode>(); WindowName = nodeType.ToString(); RootNodeType = nodeType; IsRootNode = true; }
/// <summary> /// 开启UI /// </summary> /// <param name="windowName"></param> /// <param name="nodeType"></param> /// <returns></returns> public WindowNode OpenWindow(string windowName, BaseNodeType nodeType = BaseNodeType.Normal) { return(OpenWindow(new WindowNodeInitParam(windowName) { NodeType = nodeType })); }
public WindowNode(WindowNodeInitParam initParam) { ChildWindows = new List <WindowNode>(); WindowName = initParam.WindowName; WindowAssetName = initParam.WindowAssetName; IsRootNode = false; m_WindowData = initParam.WindowData; ParentWindow = initParam.ParentNode; RootNodeType = initParam.ParentNode.RootNodeType; this.m_WindowLoadComplatedCallBack = initParam.LoadComplatedCallBack; }
/// <summary> /// 获取WindowNode /// </summary> /// <param name="nodeType"></param> /// <returns></returns> WindowNode GetBaseWindowNodeByNodeType(BaseNodeType nodeType) { int value = (int)nodeType; if (value < m_RootWindowNodes.Length && value > -1) { return(m_RootWindowNodes[value]); } else { return(null); } }