コード例 #1
0
    private void ResponseChargeGetSign(ScChargeDailyRebateGet msg)
    {
        if (msg.result != 0)
        {
            moduleGlobal.ShowMessage(9855, msg.result);
            return;
        }

        if (m_currentControl != null && m_currentControl.Info.id == msg.whichday)
        {
            m_currentControl.Info.draw = true;
            m_currentControl.InitData(m_chargeItem, m_currentControl.Info, msg.whichday);
            Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.RechargeUIText, 30), m_currentControl.Info.reward);
        }
        else
        {
            var dailyInfo = m_rewards.oneinfo.Find(item => item.id == msg.whichday);
            if (null != dailyInfo)
            {
                dailyInfo.draw = true;
                RefreshList();
                Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.RechargeUIText, 30), dailyInfo.reward);
            }
        }
    }
コード例 #2
0
    void _ME(ModuleEvent <Module_Shop> e)
    {
        if (!actived || moduleShop.curShopPos != ShopPos.Npc)
        {
            return;
        }
        switch (e.moduleEvent)
        {
        case Module_Shop.EventShopData:
            var list = e.param1 as List <ShopMessage>;
            if (list == null || list.Count < 1)
            {
                break;
            }
            moduleShop.SetCurrentShop(list[0]);
            break;

        case Module_Shop.EventTargetShopData:
            RefreshNpcShop();
            break;

        case Module_Shop.EventPaySuccess:
            unlockTip.SafeSetActive(false);
            Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.TravalShopUIText, 13), moduleShop.curClickItem);
            suiteData.UpdateItems();
            unlockBtn.interactable = true;
            unlockBtn.SafeSetActive(false);
            break;

        case Module_Shop.EventPromoChanged:
            var msg = e.param1 as ShopMessage;
            if (msg != null && msg.pos == ShopPos.Maze)
            {
                DefaultState();
                int page = suiteView.currentPage;
                suiteData.UpdateItems();
                suiteView.ScrollToPage(page);
            }
            break;

        case Module_Shop.EventNpcChangeEquip:
            var result = (sbyte)e.param1;
            if (result != 0)
            {
                equipBtn.interactable = true;
            }
            else
            {
                if (moduleNPCDating.curDatingNpcMsg != null)
                {
                    ChangeNpcMode(moduleNPCDating.curDatingNpcMsg.mode);
                }
                suiteData.UpdateItems();
            }
            break;

        default:
            break;
        }
    }
コード例 #3
0
    void _ME(ModuleEvent <Module_Shop> e)
    {
        if (moduleShop.curShopPos != ShopPos.NpcDating)
        {
            return;
        }
        switch (e.moduleEvent)
        {
        case Module_Shop.EventShopData:
            var list = e.param1 as List <ShopMessage>;
            if (list == null || list.Count < 1)
            {
                break;
            }
            moduleShop.SetCurrentShop(list[0]);
            break;

        case Module_Shop.EventTargetShopData:
            m_shopMessage = (ShopMessage)e.param1;
            List <PShopItem> tempList = new List <PShopItem>(m_shopMessage.items);
            moduleNPCDating.HotelShopItemList = tempList;

            _Index(1);    //默认刷新第一页
            break;

        case Module_Shop.EventPaySuccess:
            Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.TravalShopUIText, 13), moduleShop.curClickItem);
            Hide <Window_DatingRestaurant>();   //关闭菜单界面
            break;

        default:
            break;
        }
    }
コード例 #4
0
    void _ME(ModuleEvent <Module_Equip> e)
    {
        if (!actived)
        {
            return;
        }
        switch (e.moduleEvent)
        {
        case Module_Equip.EvenSynthesisSucced:
            var compose = e.msg as ScRoleItemCompose;
            if (compose != null && compose.items != null && compose.items.Length > 0)
            {
                Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.WarehouseUiText, 23), compose.items);
            }
            RefreshInfo();
            break;

        case Module_Equip.EventRefreshCangku:
            RefreshInfo();
            SetToggleHint();
            break;

        default:
            break;
        }
    }
コード例 #5
0
 //succed tip
 private void ShowSuccedReward(PItem2[] info, int boxId)
 {
     m_previewPlane.gameObject.SetActive(false);
     Window_ItemTip.Show(ConfigText.GetDefalutString(242, 194), info);
     AnmiaDelayTimes = 0;
     SetBoxState(boxId, m_rewardObj[boxId]);
 }
コード例 #6
0
    public void WelfareSuccedShow(PWeflareAward[] info, int index, int type)//获得物品提示
    {
        if (info.Length <= 0 || (WelfareType)type == WelfareType.Sign)
        {
            return;
        }

        if ((WelfareType)type == WelfareType.FirstFlush || (WelfareType)type == WelfareType.StrengConsum || (WelfareType)type == WelfareType.DailySign || (WelfareType)type == WelfareType.SpecifiedStreng || (WelfareType)type == WelfareType.MatchStreetPvP)
        {
            var list = moduleWelfare.CheckProto(info[0].reward);
            if ((WelfareType)type == WelfareType.SpecifiedStreng)//只有该类型index为倍数
            {
                for (int i = 0; i < list.Count; i++)
                {
                    list[i].num = list[i].num * (uint)index;
                }
            }
            Window_ItemTip.Show(ConfigText.GetDefalutString(211, 18), list);
        }
        else
        {
            for (int i = 0; i < info.Length; i++)
            {
                if (info[i].index == index)
                {
                    Window_ItemTip.Show(ConfigText.GetDefalutString(211, 18), moduleWelfare.CheckProto(info[i].reward));
                }
            }
        }
    }
コード例 #7
0
    void _ME(ModuleEvent <Module_Shop> e)
    {
        if (!actived || moduleShop.curShopPos != ShopPos.Traval)
        {
            return;
        }
        ShopMessage msg = null;

        switch (e.moduleEvent)
        {
        case Module_Shop.EventShopData:
            var list = e.param1 as List <ShopMessage>;
            if (list == null || list.Count < 1)
            {
                break;
            }
            CreateToggles(list);
            EnterShop(m_subTypeLock);
            break;

        case Module_Shop.EventTargetShopData:
            msg = e.param1 as ShopMessage;
            if (msg != null)
            {
                dataSource.SetItems(msg.items);
                view.progress = 0;
            }
            else
            {
                dataSource.SetItems(null);
            }
            break;

        case Module_Shop.EventPaySuccess:
            payBtn.interactable = true;
            SetRefreshBtnState();
            Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.TravalShopUIText, 13), moduleShop.curClickItem);
            if (moduleShop.curShopMsg.isRandom)
            {
                SetSelectDefault();
            }
            int page = view.currentPage;
            dataSource.UpdateItems();
            view.ScrollToPage(page);
            break;

        case Module_Shop.EventPromoChanged:
            msg = e.param1 as ShopMessage;
            if (msg != null && msg.pos == ShopPos.Traval)
            {
                OnValueChangeCheck(true);
            }
            break;

        default: break;
        }
    }
コード例 #8
0
    private void ResponseBuyItem(ScChargeBuySuccess msg)
    {
        if (tempCache.ContainsKey(msg.productId))
        {
            tempCache[msg.productId].UpdateItemInfo();
        }

        Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.RechargeUIText, 12), moduleCharge.CurrentDeal.info.reward, msg.hasTotalBuyCount == 1);
        moduleGlobal.UnLockUI();
    }
コード例 #9
0
 private void GetAwardShow(PReward Info, bool isachieve = false)//领取之后的提示
 {
     if (isachieve)
     {
         Window_ItemTip.Show(active_text[19], Info);
     }
     else
     {
         Window_ItemTip.Show(active_text[20], Info);
     }
 }
コード例 #10
0
    private void ResponseDecomposeItem(ScItemDecompose msg)
    {
        if (msg.result != 0)
        {
            moduleGlobal.ShowMessage(9753, msg.result);
            return;
        }

        Window_ItemTip.Show(ConfigText.GetDefalutString((int)TextForMatType.DecomposeUI, 3), msg.items);
        ClearControl();
        dataSource.UpdateItems();
    }
コード例 #11
0
    void _ME(ModuleEvent <Module_Shop> e)
    {
        if (!actived || moduleShop.curShopPos != ShopPos.Maze)
        {
            return;
        }
        ShopMessage msg = null;

        switch (e.moduleEvent)
        {
        case Module_Shop.EventShopData:
            var list = e.param1 as List <ShopMessage>;
            if (list == null || list.Count < 1)
            {
                break;
            }
            moduleShop.SetCurrentShop(list[0]);
            InitExchangePanel();
            break;

        case Module_Shop.EventTargetShopData:
            msg = e.param1 as ShopMessage;
            if (msg != null)
            {
                dataSource.SetItems(msg.items);
                view.progress = 0;
            }
            else
            {
                dataSource.SetItems(null);
            }
            break;

        case Module_Shop.EventPaySuccess:
            Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.TravalShopUIText, 13), moduleShop.curClickItem);
            InitExchangePanel();
            dataSource.UpdateItems();
            break;

        case Module_Shop.EventPromoChanged:
            msg = e.param1 as ShopMessage;
            if (msg != null && msg.pos == ShopPos.Maze)
            {
                InitExchangePanel();
                int page = view.currentPage;
                dataSource.UpdateItems();
                view.ScrollToPage(page);
            }
            break;

        default: break;
        }
    }
コード例 #12
0
    private void _ME(ModuleEvent <Module_Charge> e)
    {
        switch (e.moduleEvent)
        {
        case Module_Charge.NoticeChargeBuySuccess:
            Window_ItemTip.Show(ConfigText.GetDefalutString(246, 37), moduleCharge.CurrentDeal.info.reward);
            SetBtnState();
            break;

        case Module_Charge.NoticeChargeCountChange:
            SetBtnState();
            break;
        }
    }
コード例 #13
0
    private void _ME(ModuleEvent <Module_Charge> e)
    {
        switch (e.moduleEvent)
        {
        case Module_Charge.NoticeChargeBuySuccess:
            Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.RechargeUIText, 11), moduleCharge.CurrentDeal.info.reward);
            current?.RefreshCount();
            break;

        case Module_Charge.NoticeChargeCountChange:
            current?.RefreshCount();
            break;
        }
    }
コード例 #14
0
    private void ResponseBuyCard(ScChargeBuySuccess msg)
    {
        var product = moduleCharge.GetProduct(msg.productId);

        if (product.info.type == (int)ProductType.MonthCard)
        {
            var title = ConfigText.GetDefalutString(TextForMatType.RechargeUIText, Module_Charge.CalcCardDays(moduleCharge.MonthEndTime) > 0 ? 24 : 23);
            Window_ItemTip.Show(title, monthChargeItem.info.reward);
        }
        else if (product.info.type == (int)ProductType.SeasonCard)
        {
            var title = ConfigText.GetDefalutString(TextForMatType.RechargeUIText, Module_Charge.CalcCardDays(moduleCharge.SeasonEndTime) > 0 ? 24 : 23);
            Window_ItemTip.Show(title, seasonChargeItem.info.reward);
        }
    }
コード例 #15
0
    private void SignSuccedPlane()
    {
        m_signHeight.SafeSetActive(false);

        SignStateInfo signGet = moduleWelfare.SetInfo[moduleWelfare.already];

        if (signGet == null)
        {
            return;
        }
        var           succedInfo = signGet.wupin;
        List <PItem2> item       = new List <PItem2>();

        item.Add(succedInfo);
        Window_ItemTip.Show(ConfigText.GetDefalutString(211, 19), item);
        m_signInfo.SetItem(signGet, moduleWelfare.already);
    }
コード例 #16
0
    private void ResponseGetTotal(ScChargeDrawReward msg)
    {
        if (msg.result != 0)
        {
            moduleGlobal.ShowMessage(9304, msg.result);
            return;
        }

        var rList = new List <PTotalCostReward>(moduleCharge.GetTotalReward());

        rList.Sort(SortHandle);
        dataSource.SetItems(rList);

        var rewardItem = Array.Find(moduleCharge.GetTotalReward(), item => item.id == msg.drawId);

        if (rewardItem != null)
        {
            Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.RechargeUIText, 9), rewardItem.reward);
        }
    }
コード例 #17
0
    private void ResponseGetGrowthFund(ScChargeDrawGrowthFund msg)
    {
        if (msg.result != 0)
        {
            moduleGlobal.ShowMessage(9303, msg.result);
            return;
        }

        var list = new List <PGrowthFund>(moduleCharge.GetGrowthFund());

        list.Sort(SortHandle);
        dataSource.SetItems(list);

        var fund = Array.Find(moduleCharge.GetGrowthFund(), item => item.id == msg.drawId);

        if (fund != null)
        {
            Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.RechargeUIText, 10), fund.reward);
        }
    }
コード例 #18
0
    void _ME(ModuleEvent <Module_Shop> e)
    {
        if (!actived || moduleShop.curShopPos != ShopPos.Fashion)
        {
            return;
        }
        switch (e.moduleEvent)
        {
        case Module_Shop.EventShopData:
            var list = e.param1 as List <ShopMessage>;
            if (list == null || list.Count < 1)
            {
                break;
            }
            moduleShop.SetCurrentShop(list[0]);
            break;

        case Module_Shop.EventTargetShopData:
            EnterShop(m_subTypeLock);
            break;

        case Module_Shop.EventPaySuccess:
            Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.TravalShopUIText, 13), moduleShop.curClickItem);
            SetSelectDefault();
            int page = view.currentPage;
            dataSource.UpdateItems();
            view.ScrollToPage(page);
            break;

        case Module_Shop.EventPromoChanged:
            var msg = e.param1 as ShopMessage;
            if (msg != null && msg.pos == ShopPos.Fashion)
            {
                OnCheckBoxValueChange(true);
            }
            break;

        default: break;
        }
    }
コード例 #19
0
 void _ME(ModuleEvent <Module_Player> e)
 {
     if (actived && e.moduleEvent == Module_Player.EventUseProp)
     {
         if (moduleGlobal.currentOpenInfo.itemType == PropType.UseableProp &&
             moduleGlobal.currentOpenInfo.subType == (int)UseablePropSubType.PropBag ||
             moduleGlobal.currentOpenInfo.subType == (int)UseablePropSubType.CoinBag)
         {
             var sucess = e.msg as ScRoleUseProp;
             if (sucess != null)
             {
                 List <PItem2> items = new List <PItem2>();
                 items.AddRange(sucess.rewards);
                 if (items.Count < 1)
                 {
                     return;
                 }
                 string str = ConfigText.GetDefalutString(TextForMatType.SettlementUIText, 1);
                 Window_ItemTip.Show(str, items);
             }
         }
     }
 }
コード例 #20
0
    void _ME(ModuleEvent <Module_Active> e)
    {
        switch (e.moduleEvent)
        {
        case Module_Active.EventActiveCoopInvate:
            //接到可邀请列表
            OpenInvatePlane();
            break;

        case Module_Active.EventActiveCoopInfo:
            //所有任务
            SetCoolPlane();
            SetHint();
            break;

        case Module_Active.EventActiveCoopInvateSuc:
            //邀请成功
            var invate = Util.Parse <int>(e.param1.ToString());
            CoopAllInfo.UpdateItem(invate);
            break;

        case Module_Active.EventActiveCoopKiced:
            //踢出成功
            var kiced = Util.Parse <int>(e.param1.ToString());
            CoopAllInfo.UpdateItem(kiced);
            break;

        case Module_Active.EventActiveCoopBeKiced:
            //被踢出
            CoopAllInfo.SetItems(moduleActive.CoopTaskList);
            break;

        case Module_Active.EventActiveCoopValue:
            //进度变化
            var value = Util.Parse <int>(e.param1.ToString());
            CoopAllInfo.UpdateItem(value);
            break;

        case Module_Active.EventActiveCoopCanGet:
            //可领取
            var get = Util.Parse <int>(e.param1.ToString());
            CoopAllInfo.UpdateItem(get);
            SetHint();
            break;

        case Module_Active.EventActiveCoopGet:
            //领取成功
            var      succed = Util.Parse <int>(e.param1.ToString());
            PItem2[] reward = e.param2 as PItem2[];
            CoopAllInfo.UpdateItem(succed);
            if (actived && reward != null)
            {
                Window_ItemTip.Show(active_text[59], reward);
            }
            break;

        case Module_Active.EventActiveCoopApply:
            CoopAllInfo.SetItems(moduleActive.CoopTaskList);
            break;

        case Module_Active.EventActiveDayInfo:
            //上线接收日常详情
            DailyAllInfo.SetItems(moduleActive.DailyOpenList);
            NoDailyTask();
            SetHint();
            break;

        case Module_Active.EventActiveDayValue:
            // 日常进度值有变化
            PDailyInfo info  = e.msg as PDailyInfo;
            int        index = GetDIndex(info.taskId);
            if (index != -1)
            {
                DailyAllInfo.SetItem(info, index);
            }
            break;

        case Module_Active.EventActiveDayReach:
            //日常任务达成可以领取奖励
            PDailyInfo cinfo = e.msg as PDailyInfo;
            DailyAllInfo.RemoveItem(cinfo);
            DailyAllInfo.AddItem(cinfo, 0);
            DailyAllInfo.UpdateItems();
            SetHint();
            break;

        case Module_Active.EventActiveDayGet:
            //日常任务奖励领取成功
            PDailyInfo dinfo = e.param1 as PDailyInfo;
            PDailyTask tinfo = e.param2 as PDailyTask;
            DailyAllInfo.RemoveItem(dinfo);
            GetAwardShow(tinfo.reward);
            ActiveNum();    //更改今日活跃度进度值
            NoDailyTask();
            break;

        case Module_Active.EventActiveDayOpen:
            //日常任务开启类似早午餐那种
            DailyAllInfo.UpdateItems();
            NoDailyTask();
            SetHint();
            break;

        case Module_Active.EventActiveDayClose:
            //日常任务过期了 直接删掉
            PDailyInfo overinfo = e.param1 as PDailyInfo;
            DailyAllInfo.RemoveItem(overinfo);
            NoDailyTask();
            SetHint();
            break;

        case Module_Active.EventActiveAchieveInfo:
            //上线接收成就详情每次都刷新
            AchieveAllInfo.SetItems(moduleActive.Achieveinfo);
            SetHint();
            break;

        case Module_Active.EventActiveAchieveValue:
            //进度值变化
            PAchieve pinfo  = e.msg as PAchieve;
            int      pindex = GetPIndex(pinfo.id);
            if (pindex != -1)
            {
                AchieveAllInfo.SetItem(pinfo, pindex);
            }
            break;

        case Module_Active.EventActiveAchieveCanGet:
            //成就达成可领取奖励调用同一个方法
            PAchieve ainfo = e.msg as PAchieve;
            AchieveAllInfo.RemoveItem(ainfo);
            AchieveAllInfo.AddItem(ainfo, 0);
            SetHint();
            break;

        case Module_Active.EventActiveAchieveGet:
            //成就奖励领取完毕调用同一个方法
            PAchieve ainfo1 = e.msg as PAchieve;
            GetAwardShow(ainfo1.reward, true);
            AchieveAllInfo.SetItems(moduleActive.Achieveinfo);
            break;

        case Module_Active.EventActiveAchieveOpen:
            //某些活动开启 删掉重新创建
            AchieveAllInfo.UpdateItems();
            SetHint();
            break;

        case Module_Active.EventActiveDailyCanGet:
            // 日活跃度可以领取奖励
            PActiveBox activeindo = e.msg as PActiveBox;
            ActiveShua(activeindo);    //可领取
            SetHint();
            break;

        case Module_Active.EventActiveDailyGet:
            //日常活跃度奖励领取成功
            award_plane.gameObject.SetActive(false);
            PActiveBox activeinfos = e.msg as PActiveBox;
            ActiveShua(activeinfos);    //可领取
            Activetask();
            GetAwardShow(activeinfos.reward);
            break;

        case Module_Active.EventActiveWeekCanGet:
            //周活跃度达成可以领取奖励
            PActiveBox WCanInfo = e.msg as PActiveBox;
            WhichShua(WCanInfo.id);
            SetHint();
            break;

        case Module_Active.EventActiveWeekGet:
            //周活跃度奖励领取成功
            PActiveBox WInfo = e.msg as PActiveBox;
            award_plane.gameObject.SetActive(false);
            WhichShua(WInfo.id);
            GetAwardShow(WInfo.reward);
            break;

        default:
            break;
        }
    }
コード例 #21
0
ファイル: Window_Train.cs プロジェクト: NoeCalmness/CoreFrame
 private void ResponseTrainGotAward(ScTrainAward scTrainAward)
 {
     Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.PetTrainText, 27), scTrainAward.awards);
 }
コード例 #22
0
    private void _ME(ModuleEvent <Module_Set> e)
    {
        switch (e.moduleEvent)
        {
        case Module_Set.EventBindAccount:
        {
            var code = (int)e.param1;
            if (code == 0)
            {
                isClickRegisterBtn = true;
                moduleGlobal.ShowMessage(system_txt[31]);
                Close_tip();
                Accont_click.gameObject.SetActive(false);
            }
            else
            {
                var rstr = moduleLogin.Result(code);
                moduleGlobal.ShowMessage(rstr);
            }
            break;
        }

        case Module_Set.EventHeadChange:
        {
            AllHeadData.UpdateItems();
            Close_tip();
            break;
        }

        case Module_Set.EventIntroudChange:
            var bb = Util.Parse <int>(e.param1.ToString());
            if (bb == 0)
            {
                modulePlayer.roleInfo.sign = introduce_plane_txt.text;
                introduce_txt.text         = moduleSet.SetSignTxt(modulePlayer.roleInfo.sign);
                Close_tip();
            }
            else
            {
                moduleGlobal.ShowMessage(system_txt[33]);
            }
            break;

        case Module_Set.EventNameChange:
            //更改成功
            AudioManager.PlaySound(AudioInLogicInfo.audioConst.clickToSucc);    //更改成功的音效
            var result = Util.Parse <int>(e.param2.ToString());

            if (result == 0)
            {
                var formatText = e.param1 as string;
                Util.SetText(m_name, formatText);
                Close_tip();
            }
            else
            {
                Nametips(result);
                change_name.gameObject.SetActive(true);
                sure_name_change.gameObject.SetActive(false);
                name_txt.text = string.Empty;
            }
            break;

        case Module_Set.EventBangAward:
            var reward  = e.param1 as PReward;
            var result1 = Util.Parse <int>(e.param2.ToString());
            award_txt.text = string.Empty;

            if (result1 == 0)    //出现奖励条例
            {
                Window_ItemTip.Show(system_txt[70], reward);
                Close_tip();
            }
            break;
        }
    }
コード例 #23
0
    void _ME(ModuleEvent <Module_Mailbox> e)
    {
        switch (e.moduleEvent)
        {
        case Module_Mailbox.NoMailsEvent:
        {
            if (moduleMailbox.allMails != null && moduleMailbox.allMails.Count > 0)
            {
                return;
            }

            nothing.SafeSetActive(true);
            mailTitle.text          = null;
            mailSender.text         = null;
            mailTitleTime.text      = null;
            mailContent.text        = null;
            getAll.interactable     = false;
            deleteRead.interactable = false;
            getBtn.SafeSetActive(false);
            mailNumber.text = "0/100";
            selectIndex     = 0;
            dataSource.SetItems(null);
            SetButtonEnable();
            break;
        }

        case Module_Mailbox.AllMailsEvent:
        {
            selectIndex = 0;
            nothing.SafeSetActive(false);
            dataSource.SetItems(moduleMailbox.allMails);
            OnClick(moduleMailbox.allMails[0]);
            mailNumber.text = Util.Format("{0}/100", moduleMailbox.allMails.Count);
            SetButtonEnable();
            break;
        }

        case Module_Mailbox.ReadMailEvent: dataSource.UpdateItem(selectIndex); break;

        case Module_Mailbox.GetAttachmentSuccessEvent:
        {
            ulong id = (ulong)e.param1;
            if (moduleMailbox.isGetAll == 1)    //不是全部领取
            {
                //RefreshGetRewardPanel(moduleMailbox.currentMail.attachment);
                List <PItem2> lists = new List <PItem2>();
                lists.AddRange(moduleMailbox.currentMail.attachment);
                string str = ConfigText.GetDefalutString(TextForMatType.MailUIText, 13);
                Window_ItemTip.Show(str, lists);
                moduleMailbox.OnDeleteRewards(true, id);
                moduleMailbox.isGetAll = 0;
            }
            else if (moduleMailbox.isGetAll == 2)
            {
                noticeTip.SafeSetActive(false);
                moduleGlobal.ShowMessage(ConfigText.GetDefalutString(TextForMatType.MailUIText, 0));
                moduleMailbox.OnDeleteRewards(false);
                moduleMailbox.isGetAll = 0;
            }

            for (int i = 0; i < moduleMailbox.allMails.Count; i++)
            {
                if (moduleMailbox.allMails[i].mailId == id)
                {
                    moduleMailbox.allMails[i].isRead = 1;
                    moduleMailbox.allMails[i].isGet  = 1;
                }
            }

            SetButtonEnable();

            getBtn.SafeSetActive(false);
            awardGoods.SafeSetActive(false);
            deleteRead.interactable = true;

            dataSource.UpdateItems();
            break;
        }

        case Module_Mailbox.GetAttachmentFailedEvent:
        {
            sbyte result = (sbyte)e.param1;
            switch (result)
            {
            case 1:
                moduleGlobal.ShowMessage(ConfigText.GetDefalutString(TextForMatType.MailUIText, 2));
                break;

            case 2:
                moduleGlobal.ShowMessage(ConfigText.GetDefalutString(TextForMatType.MailUIText, 3));
                break;
            }
            getAll.interactable = true;
            break;
        }

        default: break;
        }
    }