示例#1
0
 /// <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
     }));
 }
示例#2
0
 public WindowNode(BaseNodeType nodeType)
 {
     ChildWindows = new List <WindowNode>();
     WindowName   = nodeType.ToString();
     RootNodeType = nodeType;
     IsRootNode   = true;
 }
示例#3
0
 /// <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
     }));
 }
示例#4
0
 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;
 }
示例#5
0
    /// <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);
        }
    }