Exemple #1
0
        public void OpenPanelTop(UIID uiID, params object[] args)
        {
            AbstractPanel panel = null;

            if (!m_AllPanelMap.TryGetValue(uiID, out panel))
            {
                panel = GetPanel(uiID);
                panel.PanelInit();
                if (panel == null)
                {
                    Log.I("No find panel:{0}", uiID.ToString());
                    return;
                }
            }
            panel.transform.SetParent(m_UIRoot.TopRoot);

            if (!m_CurrentShowMap.ContainsValue(panel))
            {
                m_CurrentShowMap.Add(uiID, panel);
            }
            m_CurrentShowList.Add(panel);
            panel.PanelOpen(args);
        }
Exemple #2
0
        public void OpenPanel(UIID uiID, params object[] args)
        {
            AbstractPanel panel = null;

            if (!m_AllPanelMap.TryGetValue(uiID, out panel))
            {
                panel = GetPanel(uiID);
                panel.PanelInit();
                if (panel == null)
                {
                    Log.I("No find panel:{0}", uiID.ToString());
                    return;
                }
            }
            panel.SortIndex = m_UIRoot.RequireNextPanelSortingOrder(panel.ShowMode);
            AdjustSiblingIndex(panel);
            if (!m_CurrentShowMap.ContainsValue(panel))
            {
                m_CurrentShowMap.Add(uiID, panel);
            }
            m_CurrentShowList.Add(panel);
            panel.PanelOpen(args);
        }