示例#1
0
 private void ActivePanel(IZUIPanel panel, UIParamInfo param)
 {
     if (panel == null)
     {
         return;
     }
     UpdateHistory();
     panel.WakenUp(panelParent);
     _currentPanel = panel as ZUIPanel;
     current       = _currentPanel.name;
     StartCoroutine(OpenInspector(_currentPanel, param));
 }
示例#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);
            }
        }