示例#1
0
        /// <summary>
        /// 重复打开
        /// </summary>
        /// <param name="panel"></param>
        /// <param name="param"></param>
        public void RepeatOpenPanel(IZUIPanel panel, UIParamInfo param)
        {
            if (panel == null)
            {
                return;
            }
            UpdateHistory();
            panel.Open(panelParent, param);
            _currentPanel = panel as ZUIPanel;
            current       = _currentPanel.name;

            ZLog.Warning("panel name = " + current + " is opened!!!");
        }
示例#2
0
        public void ShowBackPanel()
        {
            if (_currentPanel != null)
            {
                ClosePanel(_currentPanel);
            }
            string uname = parent;

            if (string.IsNullOrEmpty(uname))
            {
                return;
            }
            history.RemoveAt(history.Count - 1);
            IZUIPanel panel = null;

            for (int i = 0; i < panels.Count; i++)
            {
                if (panels[i].definition == uname)
                {
                    panel = panels[i];
                    break;
                }
            }
            if (panel != null)
            {
                ZUIPanel tmp = panel as ZUIPanel;
                if (panel.isOpen)
                {
                    panel.Open(tmp.Info);
                }
                else
                {
                    panel.WakenUp(panelParent);
                    StartCoroutine(OpenInspector(tmp, tmp.Info));
                }
                _currentPanel = tmp;
                current       = _currentPanel.name;
                ZLog.Warning("ShowBackPanel....." + current);
            }
        }