Ejemplo n.º 1
0
        protected virtual void RealShowWindow(UIWindowBase baseWindow, WindowID id, ShowWindowData showData = null)
        {
            BaseWindowContextData contextData = showData == null ? null : showData.contextData;

            baseWindow.ReadyToShowWindow(contextData);
            dicShownWindows[id] = baseWindow;
            if (baseWindow.windowData.navigationMode == UIWindowNavigationMode.NormalNavigation)
            {
                lastNavigationWindow = curNavigationWindow;
                curNavigationWindow  = baseWindow;
                Debug.Log("<color=magenta>### current Navigation window </color>" + baseWindow.ID.ToString());
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Navigation reShow target windows
        /// </summary>
        private void ShowWindowForNavigation(WindowID id)
        {
            if (!this.IsWindowInControl(id))
            {
                Debug.Log("## Current UI Manager has no control power of " + id.ToString());
                return;
            }
            if (dicShownWindows.ContainsKey(id))
            {
                return;
            }

            UIWindowBase baseWindow = GetGameWindow(id);

            baseWindow.ReadyToShowWindow();
            dicShownWindows[baseWindow.ID] = baseWindow;
        }
Ejemplo n.º 3
0
        public override UIWindowBase ShowWindow(WindowID id, ShowWindowData showData = null)
        {
            UIWindowBase baseWindow = ReadyToShowBaseWindow(id, showData);

            if (baseWindow != null)
            {
                RealShowWindow(baseWindow, id, showData);
            }
            else
            {
                baseWindow = GetGameWindow(id);
                if (baseWindow != null)
                {
                    BaseWindowContextData contextData = showData == null ? null : showData.contextData;
                    baseWindow.ReadyToShowWindow(contextData);
                }
            }
            return(baseWindow);
        }