示例#1
0
        protected override void PostSetVisible(bool _bVisible)
        {
            base.PostSetVisible(_bVisible);
            if (!_bVisible && m_wndView != null)
            {
                //目前只有宝石界面单独了出来,非UIBaseSubWnd,所以特殊处理下
                PlayerSubWndType currentSubWndType = m_wndView.GetCurSubWnd();
                if (currentSubWndType == PlayerSubWndType.WND_CROWN)
                {
                    //IUIWnd subWnd = GetSubUIWnd(currentSubWndType);
                    //subWnd.SetVisible(false);
                }
                else
                {
                    IUISubWnd subWnd = GetSubWnd(currentSubWndType);
                    subWnd.SetVisible(false);
                }


                //UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_PLAYERFRAME_CLOSE, null);
            }

            UCommonPopupWndVisible msgData = new UCommonPopupWndVisible();

            msgData.msgID     = (int)WndMsgID.WND_MSG_COMMON_POPUPWND_VISIBLE;
            msgData.nWndID    = (int)GetID();
            msgData.isVisible = _bVisible;
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_COMMON_POPUPWND_VISIBLE, msgData);
        }
示例#2
0
        public IUIWnd GetSubUIWnd(PlayerSubWndType _eWndType)
        {
            IUIWnd subWnd = null;

            if (m_dicFillWnd.ContainsKey(_eWndType))
            {
                subWnd = m_dicFillWnd[_eWndType];
            }

            return(subWnd);
        }
示例#3
0
 private void ShowSubUIWnd(PlayerSubWndType _eWndType)
 {
     foreach (KeyValuePair <PlayerSubWndType, IUIWnd> keyValue in m_PlayerFrameWnd.m_dicFillWnd)
     {
         if (keyValue.Key == _eWndType)
         {
             keyValue.Value.SetVisible(true);
         }
         else
         {
             keyValue.Value.SetVisible(false);
         }
     }
     m_CurWndType = _eWndType;
 }
示例#4
0
 private void ShowSubWnd(PlayerSubWndType wndType)
 {
     foreach (IUISubWnd wnd in m_PlayerFrameWnd.m_SubWndList)
     {
         if (wnd.GetWndType() == (int)wndType)
         {
             wnd.SetVisible(true);
         }
         else
         {
             wnd.SetVisible(false);
         }
     }
     m_CurWndType = wndType;
 }
示例#5
0
        public IUISubWnd GetSubWnd(PlayerSubWndType wndType)
        {
            IUISubWnd subWnd = null;

            foreach (IUISubWnd wnd in m_SubWndList)
            {
                if (wnd.GetWndType() == (int)wndType)
                {
                    subWnd = wnd;
                    break;
                }
            }

            return(subWnd);
        }