Exemple #1
0
        public void hideSceneForm(UISceneFormID ID)
        {
            SceneForm win = null;

            if (m_dicForm.ContainsKey(ID))
            {
                win = m_dicForm[ID];

                if (win != null)
                {
                    if (win.bVisible)
                    {
                        win.onHide();
                    }
                }
            }
        }
Exemple #2
0
        public void readySceneForm(UISceneFormID ID)
        {
            SceneForm win = null;

            if (m_dicForm.ContainsKey(ID))
            {
                win = m_dicForm[ID];

                if (win != null)
                {
                    if (!win.bReady)
                    {
                        win.onReady();
                    }
                }
            }
        }
Exemple #3
0
        public void exitSceneForm(UISceneFormID ID, bool bremoved = true)
        {
            SceneForm win = null;

            if (m_dicForm.ContainsKey(ID))
            {
                win = m_dicForm[ID];

                if (win != null)
                {
                    win.onExit();
                    if (bremoved)
                    {
                        m_dicForm.Remove(ID);
                    }
                }
            }
        }
Exemple #4
0
        public SceneForm showSceneForm(UISceneFormID ID)
        {
            SceneForm win = null;

            if (m_dicForm.ContainsKey(ID))
            {
                win = m_dicForm[ID];

                if (win != null)
                {
                    if (!win.bReady)
                    {
                        win.onReady();
                    }
                    if (!win.bVisible)
                    {
                        win.onShow();
                    }
                }
            }

            return(win);
        }