public override void UpdateUI() { //IL_0254: Unknown result type (might be due to invalid IL or missing references) allPointEvents = new PointEventCurrentData(); allPointEvents.pointRankingData = new PointEventCurrentData.PointResultData(); for (int j = 0; j < MonoBehaviourSingleton <InGameManager> .I.rushPointEvents.Count; j++) { PointEventCurrentData pointEventCurrentData = MonoBehaviourSingleton <InGameManager> .I.rushPointEvents[j]; if (j == 0) { allPointEvents.pointRankingData.userPoint = pointEventCurrentData.pointRankingData.userPoint; } AddPointEventData(pointEventCurrentData); } PointEventCurrentData.PointResultData d = allPointEvents.pointRankingData; QuestTable.QuestTableData questData = Singleton <QuestTable> .I.GetQuestData(MonoBehaviourSingleton <QuestManager> .I.currentQuestID); SetLabelText((Enum)UI.LBL_QUEST_NAME, questData.questText); SetFontStyle((Enum)UI.LBL_GET_POINT, 2); SetLabelText((Enum)UI.LBL_GET_POINT, "0pt"); SetFontStyle((Enum)UI.LBL_TOTAL_POINT, 2); SetLabelText((Enum)UI.LBL_TOTAL_POINT, d.userPoint.ToString("N0") + "pt"); SetGrid(UI.GRD_POINT_DETAIL, "RushResultPointDetailItem", d.bonusPoint.Count, true, delegate(int i, Transform t, bool is_recycle) { UILabel component = FindCtrl(t, UI.LBL_POINT).GetComponent <UILabel>(); component.alpha = 1f; component.text = d.bonusPoint[i].point.ToString("N0"); component.fontStyle = 2; UILabel component2 = FindCtrl(t, UI.LBL_POINT_NAME).GetComponent <UILabel>(); component2.alpha = 1f; component2.text = d.bonusPoint[i].name; component2.fontStyle = 2; }); if (d.nextReward != null) { List <PointEventCurrentData.Reward> reward = d.nextReward.reward; SetAllRewardItem(UI.GRD_NEXT_ITEM_ROOT, reward); SetPoint(UI.OBJ_NEXT_REWARD, d.nextReward.point - (d.userPoint + d.getPoint)); } else { SetActive((Enum)UI.STR_POINT_NEXT, false); SetFontStyle(GetCtrl(UI.OBJ_NEXT_REWARD), UI.LBL_POINT, 2); SetLabelText(GetCtrl(UI.OBJ_NEXT_REWARD), UI.LBL_POINT, "なし"); } List <PointEventCurrentData.Reward> list = new List <PointEventCurrentData.Reward>(); foreach (PointEventCurrentData.PointRewardData item in d.getReward) { list.AddRange(item.reward); } SetAllRewardItem(UI.GRD_ITEM_ROOT, list); this.StartCoroutine(PlayAnimation()); }
private void SetRankingUI() { //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_013c: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Expected O, but got Unknown //IL_018e: Unknown result type (might be due to invalid IL or missing references) SetActive((Enum)UI.BTN_SKIP_FULL_SCREEN, true); PointEventCurrentData.PointResultData pointRankingData = currentData.pointRankingData; SetLabelText((Enum)UI.LBL_RANKING_TOTAL_POINT, (pointRankingData.userPoint + pointRankingData.getPoint).ToString("N0")); SetLabelText((Enum)UI.LBL_PASS_NUM, Mathf.Max(0, pointRankingData.beforeRank - pointRankingData.afterRank).ToString("N0") + "人抜き"); int num = Mathf.Min(999999, pointRankingData.beforeRank); int num2 = Mathf.Min(999999, pointRankingData.afterRank); int num3 = 0; num3 = ((num <= num2) ? num2.ToString().Length : num.ToString().Length); rankingNumbers = new List <GameObject>(6); Transform ctrl = GetCtrl(UI.GRD_COUNT_NUMBERS); for (int i = 0; i < 6; i++) { Transform val = Utility.FindChild(ctrl, "Number" + i); if (!(val == null)) { if (i >= num3) { val.set_parent(null); Object.Destroy(val.get_gameObject()); } else { rankingNumbers.Add(val.get_gameObject()); } } } ctrl.GetComponent <UIGrid>().Reposition(); if (num > num2) { SetSpriteNumber(num); } else { SetSpriteNumber(num2); } InitTween((Enum)UI.OBJ_RANKING_ANIM_ROOT); this.StartCoroutine(StartRankingAnimation()); }
private void SetRewardUI() { //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: Expected O, but got Unknown //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_0310: Unknown result type (might be due to invalid IL or missing references) SetFullScreenButton((Enum)UI.BTN_SKIP_FULL_SCREEN); SetActive((Enum)UI.BTN_OK, false); InitTween((Enum)UI.OBJ_GET_EXP_ROOT); InitTween((Enum)UI.OBJ_TOTAL_EXP_ROOT); InitTween((Enum)UI.OBJ_NEXT_REWARD_ROOT); InitTween((Enum)UI.OBJ_GET_REWARD_ROOT); InitTween((Enum)UI.OBJ_BONUS_TIME_ROOT); PointEventCurrentData.PointResultData pointRankingData = currentData.pointRankingData; if (MonoBehaviourSingleton <GuildRequestManager> .IsValid() && MonoBehaviourSingleton <GuildRequestManager> .I.isCompleteMulti) { Transform ctrl = GetCtrl(UI.OBJ_POINT_DETAIL); foreach (Transform item in ctrl) { Transform val = item; val.get_gameObject().SetActive(false); } } else { SetLabelText((Enum)UI.LBL_QUEST_NAME, MonoBehaviourSingleton <QuestManager> .I.GetCurrentQuestName()); EnemyTable.EnemyData enemyData = Singleton <EnemyTable> .I.GetEnemyData((uint)MonoBehaviourSingleton <QuestManager> .I.GetCurrentQuestEnemyID()); ItemIcon.Create(ITEM_ICON_TYPE.QUEST_ITEM, enemyData.iconId, null, GetCtrl(UI.OBJ_ENEMY), ELEMENT_TYPE.MAX, null, -1, null, 0, false, -1, false, null, false, 0, 0, false, GET_TYPE.PAY); } int num = 0; int num2 = 0; for (int i = 0; i < pointRankingData.bonusPoint.Count; i++) { num += pointRankingData.bonusPoint[i].point; if (!MonoBehaviourSingleton <GuildRequestManager> .IsValid() || !MonoBehaviourSingleton <GuildRequestManager> .I.isCompleteMulti) { if (pointRankingData.bonusPoint[i].name != "ブ\u30fcストポイント" && pointRankingData.bonusPoint[i].point > 0) { SetBonusPoint(num2, pointRankingData.bonusPoint[i].name, pointRankingData.bonusPoint[i].point); num2++; } else { boostPoint = pointRankingData.bonusPoint[i].point; boostRate = pointRankingData.bonusPoint[i].boostRate; } } } MonoBehaviourSingleton <GuildRequestManager> .I.isCompleteMulti = false; SetLabelText((Enum)UI.LBL_MONSTER_POINT, "+" + (pointRankingData.getPoint - num).ToString("N0")); SetLabelText((Enum)UI.LBL_GET_POINT, pointRankingData.getPoint.ToString("N0")); SetLabelText((Enum)UI.LBL_TOTAL_POINT, (pointRankingData.userPoint + pointRankingData.getPoint).ToString("N0")); if (pointRankingData.nextReward != null) { SetLabelText((Enum)UI.LBL_NEXT_POINT, pointRankingData.nextReward.point.ToString()); SetLabelText((Enum)UI.LBL_NEXT_ITEM_NUM, pointRankingData.nextReward.reward[0].num.ToString("N0")); } this.StartCoroutine(GetPointAnimation()); }