Ejemplo n.º 1
0
    private void OnClickGetReward(GameObject go)
    {
        if (Singleton <GetItemsView> .Instance.IsOpen || !this.canClickGetReward)
        {
            return;
        }
        GetItemsView expr_20 = Singleton <GetItemsView> .Instance;

        expr_20.onFinish = (Callback)Delegate.Combine(expr_20.onFinish, new Callback(this.CanGetReward));
        SendMsgManager.SendMsgParam param = new SendMsgManager.SendMsgParam(true, "正在获得奖励", true, 15f);
        if (this.m_taskData != null)
        {
            SendMsgManager.Instance.SendMsg(MobaGameCode.GetAchieveTaskAward, param, new object[]
            {
                this.m_taskData[int.Parse(go.transform.parent.parent.parent.name)].taskid
            });
            this.canClickGetReward = false;
        }
        else
        {
            SendMsgManager.Instance.SendMsg(MobaGameCode.GetDailyTaskAward, param, new object[]
            {
                this.m_dailyData[int.Parse(go.transform.parent.parent.parent.name)].taskid
            });
            this.canClickGetReward = false;
        }
        this.cormgr.StartCoroutine(this.RevertCanClick(), true);
    }
Ejemplo n.º 2
0
 private void OnMsg_coalesceviewAfterCoalesce(MobaMessage msg)
 {
     if (msg != null && this.modelID != 0)
     {
         CtrlManager.OpenWindow(WindowID.GetItemsView, null);
         MobaMessageManagerTools.GetItems_Rune(this.modelID);
         GetItemsView expr_29 = Singleton <GetItemsView> .Instance;
         expr_29.onFinish = (Callback)Delegate.Combine(expr_29.onFinish, new Callback(this.RefreshDataUI));
         Singleton <GetItemsView> .Instance.Play();
     }
 }
Ejemplo n.º 3
0
 private void OnMsg_runesviewOnCompoundAll(MobaMessage msg)
 {
     if (msg != null)
     {
         CtrlManager.OpenWindow(WindowID.GetItemsView, null);
         for (int i = 0; i < this.finalmiddleList.Count; i++)
         {
             this.PlayAnime(this.finalmiddleList[i].ModelId);
         }
         for (int j = 0; j < this.finalhighList.Count; j++)
         {
             this.PlayAnime(this.finalhighList[j].ModelId);
         }
         GetItemsView expr_79 = Singleton <GetItemsView> .Instance;
         expr_79.onFinish = (Callback)Delegate.Combine(expr_79.onFinish, new Callback(this.RefreshDataUI));
         Singleton <GetItemsView> .Instance.Play();
     }
 }
Ejemplo n.º 4
0
        private void OnDraw(MobaMessage msg)
        {
            if (msg == null)
            {
                CtrlManager.ShowMsgBox("Null Exception!!!", "'msg' is null. Please check 'OnDraw' method. 'BottleViewBottomRight.cs'.", delegate
                {
                }, PopViewType.PopOneButton, "确定", "取消", null);
                return;
            }
            List <object> list = (List <object>)msg.Param;

            this.typeBottle = (int)list[0];
            this.did.Clear();
            this.did.AddRange((List <DropItemData>)list[1]);
            this.times = 0;
            this.times++;
            CtrlManager.OpenWindow(WindowID.GetItemsView, null);
            if (this.did.Count == 0 || this.did == null)
            {
                return;
            }
            Tools_BottleDrop.ParseDetail(this.did);
            Tools_BottleDrop.SetModelData();
            MobaMessageManagerTools.SendClientMsg(ClientV2C.bottleSystemChangeBottleDraw, null, false);
            GetItemsView expr_A5 = Singleton <GetItemsView> .Instance;

            expr_A5.onFinish = (Callback)Delegate.Combine(expr_A5.onFinish, new Callback(this.RefreshDataUI));
            if (this.typeBottle != 0)
            {
                if (this.typeBottle == 1)
                {
                    this.CountLegend--;
                }
                else
                {
                    this.CountCollect--;
                }
            }
        }