Beispiel #1
0
        //----------------------------------------------------------------------------
        private static UIHistoryData AddWindow(string key, object arg, eUIImpower impower = eUIImpower.Default)
        {
            winKey = key;
            UIHistoryData uiHistoryData;

            ctrlDicts.TryGetValue(key, out uiHistoryData);
            if (uiHistoryData == null)
            {
                uiHistoryData = new UIHistoryData();
                ctrlDicts.Add(key, uiHistoryData);
            }
            else
            {
                Dictionary <string, UIHistoryData> dict;
                panelDicts.TryGetValue(key, out dict);
                if (dict != null)
                {
                    dict.Clear();
                    dict            = null;
                    panelDicts[key] = null;
                    panelDicts.Remove(key);
                }
            }

            uiHistoryData.UpdateData(key, arg, impower);
            return(uiHistoryData);
        }
Beispiel #2
0
        //----------------------------------------------------------------------------
        private static UIHistoryData AddPanel(string key, object arg, eUIImpower impower = eUIImpower.Default)
        {
            if (winKey == "")
            {
                return(null);
            }
            Dictionary <string, UIHistoryData> dict;

            panelDicts.TryGetValue(winKey, out dict);
            if (dict == null)
            {
                dict = new Dictionary <string, UIHistoryData>();
                panelDicts.Add(winKey, dict);
            }

            UIHistoryData uiHistoryData = null;

            dict.TryGetValue(key, out uiHistoryData);
            if (uiHistoryData == null)
            {
                uiHistoryData = new UIHistoryData();
                dict.Add(key, uiHistoryData);
            }
            uiHistoryData.UpdateData(key, arg, impower);
            return(uiHistoryData);
        }
Beispiel #3
0
        //----------------------------------------------------------------------------
        static public void ShowNew(string key, object arg, eUIImpower impower = eUIImpower.Default)
        {
            UIHistoryData data = GetPenuItimateView();

            if (data != null)
            {
                if (key == data.key)
                {
                    UIHistoryStack.Remove(data);
                }
            }
            UIHistoryData uIHistoryData = new UIHistoryData();

            uIHistoryData.UpdateData(key, arg, impower);
            UIHistoryStack.Add(uIHistoryData);
            m_listHisoryUIName.Add(key);

            if (key == "UIErrorCtrl")
            {
                return;
            }
            if (key == "UIEffectCtrl")
            {
                return;
            }
            if (key == "UIItemGetCtrl")
            {
                return;
            }
            if (key == "UIDialogToggleCtrl")
            {
                return;
            }
            if (key == "UDisConnectionCtrl")
            {
                return;
            }
            if (key == "UICircleCtrl")
            {
                return;
            }
            if (key == "UIChatSimpleViewOldCtrl")
            {
                return;
            }
            if (key == "UIPlayerUpgradeCtrl")
            {
                return;
            }
            if (key == "UIGuideVeteranModeCtrl")
            {
                return;
            }
            if (key == "UIChatSimpleCtrl")
            {
                return;
            }

            if (allShowUI.IndexOf(key) == -1)
            {
                allShowUI.Add(key);
            }
            else
            {
                allShowUI.Remove(key);
                allShowUI.Add(key);
            }
        }