private void GoToActvityView(GameObject go)
        {
            int num             = 0;
            int activity_typeID = 100;

            if (this.skipToActive.Length > 2)
            {
                num             = int.Parse(this.skipToActive[1]);
                activity_typeID = int.Parse(this.skipToActive[2]);
            }
            if (!this.CanJumpToActive(num))
            {
                Singleton <TipView> .Instance.ShowViewSetText("暂未开放", 1f);

                return;
            }
            CtrlManager.OpenWindow(WindowID.ActivityView, null);
            MsgData_Activity_setCurActivity param = new MsgData_Activity_setCurActivity
            {
                activity_typeID = activity_typeID,
                activity_id     = num
            };

            MobaMessageManagerTools.SendClientMsg(ClientV2V.Activity_setCurActivity, param, false);
        }
Exemplo n.º 2
0
        private void OnMsg_Activity_setCurActivity(MobaMessage msg)
        {
            MsgData_Activity_setCurActivity msgData_Activity_setCurActivity = msg.Param as MsgData_Activity_setCurActivity;

            this.com_top.CurTitle       = msgData_Activity_setCurActivity.activity_typeID;
            this.com_left.AType         = EActivityType.eActivity;
            this.com_left.CurTypeID     = msgData_Activity_setCurActivity.activity_typeID;
            this.com_left.CurLeftItemID = msgData_Activity_setCurActivity.activity_id;
            this.com_center.AType       = EActivityType.eActivity;
            this.com_center.CurItemInfo = this.com_left.CurItemInfo;
            this.bDoRefresh             = true;
            this.RefreshUI_center();
        }
Exemplo n.º 3
0
        private void ClickBannerItem(GameObject obj)
        {
            if (this.info == null)
            {
                return;
            }
            CtrlManager.OpenWindow(WindowID.ActivityView, null);
            MsgData_Activity_setCurActivity param = new MsgData_Activity_setCurActivity
            {
                activity_typeID = this.info.activityConfig.activity_type_id,
                activity_id     = this.info.activityConfig.id
            };

            MobaMessageManagerTools.SendClientMsg(ClientV2V.Activity_setCurActivity, param, false);
        }