Ejemplo n.º 1
0
        private void SendSimulateOpenMessege(ESimulateOpenViewType eViewType)
        {
            PlayerButtonFrameSimulateOpenData uiData = new PlayerButtonFrameSimulateOpenData();

            uiData.eViewType = eViewType;
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_PLAYERBUTTONFRAME_SIMULATEVIEWOPEN, uiData);
        }
Ejemplo n.º 2
0
        public void JumpToMakeWar()
        {
            PlayerButtonFrameSimulateOpenData uiData = new PlayerButtonFrameSimulateOpenData();

            uiData.eViewType = PlayerButtonFrame.ESimulateOpenViewType.ESOP_WAR_MAIN;
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_PLAYERBUTTONFRAME_SIMULATEVIEWOPEN, uiData);
        }
Ejemplo n.º 3
0
        // 接收消息
        public override void OnMessage(WndMsgID msgID, UIMsgData msgData)
        {
            switch (msgID)
            {
            case WndMsgID.WND_MSG_COMMOM_STATICGAMESTATE_ENTER:
            {
                SetVisible(true);
            }
            break;

            case WndMsgID.WND_MSG_COMMOM_STATICGAMESTATE_LEAVE:
            {
                this.UnloadView();
            }
            break;

            case WndMsgID.WND_MSG_PLAYERBUTTONFRAME_SETREDPOINTTIP:
            {
                if (m_wndView != null)
                {
                    m_wndView.SetRedPointTip(msgData as RedPointSetCount);
                }
            }
            break;

            case WndMsgID.WND_MSG_PLAYERBUTTONFRAME_SIMULATEVIEWOPEN:
            {
                if (m_wndView != null)
                {
                    PlayerButtonFrameSimulateOpenData data = msgData as PlayerButtonFrameSimulateOpenData;
                    m_wndView.SimulateOpenView(data.eViewType);
                }
            }
            break;

            case WndMsgID.WND_MSG_MAIL_NEWMAILCOUNT:
            {
                if (m_wndView != null)
                {
                    m_wndView.UpdateMailRedTip();
                }
            }
            break;

            case WndMsgID.WND_MSG_CROWNPAGE_REDPOINTTIP:
            {
                if (m_wndView != null)
                {
                    UIMsgCmdData cmdData = (UIMsgCmdData)msgData;
                    m_wndView.SetGemstoneRedPointCount(cmdData.nParam);
                }
            }
            break;

            case WndMsgID.WND_MSG_MSTCHTIMEINFO_SHOW:
            {
                if (m_wndView != null)
                {
                    if (LogicDataCenter.viewPersonStateDataManager.bIsMatching == false)
                    {
                        m_wndView.warHallBtn.gameObject.SetActive(false);
                    }
                }
            }
            break;

            case WndMsgID.WND_MSG_ACCEPTWAIT_SHOW:
            case WndMsgID.WND_MSG_MSTCHTIMEINFO_HIDE:
            case WndMsgID.WND_MSG_COMMOM_MATCHROOMSTATE_ENTER:
            {
                if (m_wndView != null)
                {
                    m_wndView.warHallBtn.gameObject.SetActive(true);
                }
            }
            break;

                #region 新手引导

            case WndMsgID.WND_MSG_PLAYERBUTTONFRAME_WARHALLBUTTON_ADDGUIDEWIDGET:
            {
                if (m_wndView != null)
                {
                    UGuideWidgetMsgData cmdData = (UGuideWidgetMsgData)msgData;
                    if (cmdData != null)
                    {
                        m_wndView.AddGuideUIWidget(cmdData);
                    }
                }
            }
            break;

            case WndMsgID.WND_MSG_PLAYERBUTTONFRAME_WARHALLBUTTON_REMOVEGUIDEWIDGET:
            {
                if (m_wndView != null)
                {
                    UGuideWidgetMsgData cmdData = (UGuideWidgetMsgData)msgData;
                    if (cmdData != null)
                    {
                        m_wndView.RemoveGuideUIWidget(cmdData);
                    }
                }
            }
            break;

                #endregion
            default:
                break;
            }
        }