Ejemplo n.º 1
0
 public override void UpdateUI()
 {
     //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
     //IL_00fa: Unknown result type (might be due to invalid IL or missing references)
     //IL_0200: Unknown result type (might be due to invalid IL or missing references)
     //IL_0215: Unknown result type (might be due to invalid IL or missing references)
     //IL_022d: Unknown result type (might be due to invalid IL or missing references)
     if (lb == null)
     {
         SetLabelText((Enum)UI.LBL_PICKUP, string.Empty);
         SetLabelText((Enum)UI.LBL_PERIOD, string.Empty);
     }
     else
     {
         if (topImageLoadObj != null)
         {
             Texture2D val = null;
             val = (topImageLoadObj.loadedObject as Texture2D);
             if (val != null)
             {
                 Transform t2 = FindCtrl(base._transform, UI.TEX_LOGIN_BANNER);
                 SetActive(t2, true);
                 SetTexture(t2, val);
             }
         }
         if (!isModel)
         {
             FindCtrl(base._transform, UI.OBJ_DETAIL_ROOT).set_localPosition(new Vector3(pickUpPosX, pickUpItemPosY, 0f));
             LoginBonus.LoginBonusReward loginBonusReward = pickUpReward;
             ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon((REWARD_TYPE)loginBonusReward.type, (uint)loginBonusReward.itemId, Utility.Find(base._transform, "OBJ_DETAIL_ROOT"), -1, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT);
             itemIcon.transform.set_localScale(new Vector3(1.5f, 1.5f, 1.5f));
         }
         SetLabelText((Enum)UI.LBL_PERIOD, lb.period_announce);
         SetLabelText((Enum)UI.LBL_LOGIN_DAYS, string.Format(StringTable.Get(STRING_CATEGORY.TEXT_SCRIPT, 7u), lb.nowCount.ToString()));
         FindCtrl(base._transform, UI.LBL_PICKUP).GetComponent <UILabel>().supportEncoding = true;
         SetLabelText((Enum)UI.LBL_PICKUP, pickUpReward.pickUpText);
         int count = lb.next.Count;
         SetFrame(1 + (lb.next.Count - 1) / 5, lb.boardType);
         touchAndReleaseList.Clear();
         SetGrid(UI.GRD_BONUSLIST, "LimitedLoginBonusItem", count, false, delegate(int i, Transform t, bool b)
         {
             //IL_0058: Unknown result type (might be due to invalid IL or missing references)
             //IL_005d: Expected O, but got Unknown
             //IL_0093: Unknown result type (might be due to invalid IL or missing references)
             //IL_00b7: Unknown result type (might be due to invalid IL or missing references)
             //IL_00d0: Unknown result type (might be due to invalid IL or missing references)
             //IL_00ee: Unknown result type (might be due to invalid IL or missing references)
             //IL_0107: Unknown result type (might be due to invalid IL or missing references)
             //IL_012b: Unknown result type (might be due to invalid IL or missing references)
             //IL_0144: Unknown result type (might be due to invalid IL or missing references)
             //IL_015d: Unknown result type (might be due to invalid IL or missing references)
             //IL_0176: Unknown result type (might be due to invalid IL or missing references)
             //IL_018f: Unknown result type (might be due to invalid IL or missing references)
             //IL_01a8: Unknown result type (might be due to invalid IL or missing references)
             //IL_01e5: Unknown result type (might be due to invalid IL or missing references)
             //IL_01fe: Unknown result type (might be due to invalid IL or missing references)
             //IL_0217: Unknown result type (might be due to invalid IL or missing references)
             //IL_0230: Unknown result type (might be due to invalid IL or missing references)
             //IL_0249: Unknown result type (might be due to invalid IL or missing references)
             //IL_0262: Unknown result type (might be due to invalid IL or missing references)
             //IL_0294: Unknown result type (might be due to invalid IL or missing references)
             //IL_02ad: Unknown result type (might be due to invalid IL or missing references)
             //IL_02c6: Unknown result type (might be due to invalid IL or missing references)
             //IL_02df: Unknown result type (might be due to invalid IL or missing references)
             //IL_02f8: Unknown result type (might be due to invalid IL or missing references)
             //IL_0311: Unknown result type (might be due to invalid IL or missing references)
             //IL_03b5: Unknown result type (might be due to invalid IL or missing references)
             //IL_03ea: Unknown result type (might be due to invalid IL or missing references)
             bool flag = false;
             LoginBonus.LoginBonusReward loginBonusReward2 = null;
             loginBonusReward2 = lb.next[i].reward[0];
             flag = loginBonusReward2.isGet;
             if (arrayNow == i && lb.reward.Count > 0)
             {
                 GameObject val2 = FindCtrl(t, UI.SPR_STAMP_ANIM).get_gameObject();
                 val2.SetActive(true);
                 EventDelegate.Set(val2.GetComponentInChildren <TweenScale>().onFinished, SetGetDialog);
                 FindCtrl(t, UI.SPR_STAMP).get_gameObject().SetActive(false);
             }
             else if (flag)
             {
                 FindCtrl(t, UI.SPR_STAMP_ANIM).get_gameObject().SetActive(false);
                 FindCtrl(t, UI.SPR_STAMP).get_gameObject().SetActive(true);
             }
             else
             {
                 FindCtrl(t, UI.SPR_STAMP).get_gameObject().SetActive(false);
                 FindCtrl(t, UI.SPR_STAMP_ANIM).get_gameObject().SetActive(false);
             }
             if (loginBonusReward2.isPickUp)
             {
                 FindCtrl(t, UI.SPR_DAY_BASE).get_gameObject().SetActive(false);
                 FindCtrl(t, UI.SPR_DAY_BASE_PICKUP).get_gameObject().SetActive(true);
                 FindCtrl(t, UI.SPR_DAY_BASE_FINE).get_gameObject().SetActive(false);
                 FindCtrl(t, UI.LBL_DAY_PICKUP).get_gameObject().SetActive(true);
                 FindCtrl(t, UI.LBL_DAY_FINE).get_gameObject().SetActive(false);
                 FindCtrl(t, UI.LBL_DAY).get_gameObject().SetActive(false);
                 SetLabelText(t, UI.LBL_DAY_PICKUP, loginBonusReward2.day);
             }
             else if (loginBonusReward2.frameType != 0)
             {
                 FindCtrl(t, UI.SPR_DAY_BASE).get_gameObject().SetActive(false);
                 FindCtrl(t, UI.SPR_DAY_BASE_PICKUP).get_gameObject().SetActive(false);
                 FindCtrl(t, UI.SPR_DAY_BASE_FINE).get_gameObject().SetActive(true);
                 FindCtrl(t, UI.LBL_DAY_PICKUP).get_gameObject().SetActive(false);
                 FindCtrl(t, UI.LBL_DAY_FINE).get_gameObject().SetActive(true);
                 FindCtrl(t, UI.LBL_DAY).get_gameObject().SetActive(false);
                 SetLabelText(t, UI.LBL_DAY_FINE, loginBonusReward2.day);
             }
             else
             {
                 FindCtrl(t, UI.SPR_DAY_BASE).get_gameObject().SetActive(true);
                 FindCtrl(t, UI.SPR_DAY_BASE_PICKUP).get_gameObject().SetActive(false);
                 FindCtrl(t, UI.SPR_DAY_BASE_FINE).get_gameObject().SetActive(false);
                 FindCtrl(t, UI.LBL_DAY_PICKUP).get_gameObject().SetActive(false);
                 FindCtrl(t, UI.LBL_DAY_FINE).get_gameObject().SetActive(false);
                 FindCtrl(t, UI.LBL_DAY).get_gameObject().SetActive(true);
                 SetLabelText(t, UI.LBL_DAY, loginBonusReward2.day);
             }
             SetLabelText(t, UI.LBL_ITEMNUM, "x" + loginBonusReward2.itemNum.ToString());
             ItemIcon itemIcon2 = ItemIcon.CreateRewardItemIcon((REWARD_TYPE)loginBonusReward2.type, (uint)loginBonusReward2.itemId, FindCtrl(t, UI.OBJ_ICON_ROOT), -1, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT);
             if (itemIcon2 != null)
             {
                 itemIcon2.SetEnableCollider(false);
             }
             if (flag)
             {
                 UITexture[] componentsInChildren = itemIcon2.GetComponentsInChildren <UITexture>();
                 int j = 0;
                 for (int num = componentsInChildren.Length; j < num; j++)
                 {
                     componentsInChildren[j].color = Color.get_gray();
                 }
                 UISprite[] componentsInChildren2 = itemIcon2.GetComponentsInChildren <UISprite>();
                 int k = 0;
                 for (int num2 = componentsInChildren2.Length; k < num2; k++)
                 {
                     componentsInChildren2[k].color = Color.get_gray();
                 }
             }
             SetAbilityItemEvent(t, i, touchAndReleaseList);
         });
         if (isFirst)
         {
             Transform ctrl      = GetCtrl(UI.SCR_BONUSLIST);
             UIPanel   component = ctrl.GetComponent <UIPanel>();
             ctrl.get_transform().set_localPosition(new Vector3(0f, startScrPos, 0f));
             component.clipOffset = new Vector2(0f, 0f - startScrPos);
         }
     }
 }