private void UpdateRewardIcon(Transform cardTransform, MissionData gridData) { DeliveryRewardTable.DeliveryRewardData[] rewards = Singleton <DeliveryRewardTable> .I.GetDeliveryRewardTableData(gridData.deliveryData.id); int exp = 0; if (rewards != null && rewards.Length > 0) { SetGrid(cardTransform, UI.GRD_REWARD, string.Empty, rewards.Length, false, delegate(int index, Transform t, bool is_recycle) { DeliveryRewardTable.DeliveryRewardData.Reward reward = rewards[index].reward; bool is_visible = false; if (reward.type == REWARD_TYPE.EXP) { exp += reward.num; } else { is_visible = true; ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon(reward.type, reward.item_id, t, reward.num, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.REWARD_DELIVERY_DETAIL); SetMaterialInfo(itemIcon.transform, reward.type, reward.item_id, null); itemIcon.SetRewardBG(true); } SetActive(t, is_visible); }); } }
public override void UpdateUI() { base.UpdateUI(); QuestItemInfo questItem = MonoBehaviourSingleton <InventoryManager> .I.GetQuestItem(questInfo.questData.tableData.questID); SetActive((Enum)UI.OBJ_REWARD_ICON_ROOT, false); if (questItem != null && questItem.sellItems != null && questItem.sellItems.Count > 0) { int num = 0; int count = questItem.sellItems.Count; REWARD_TYPE type; uint num2; while (true) { if (num >= count) { return; } QuestItem.SellItem sellItem = questItem.sellItems[num]; type = (REWARD_TYPE)sellItem.type; num2 = (materialId = (uint)sellItem.itemId); if (sellItem.num <= 0) { break; } int num3 = -1; SetActive((Enum)UI.OBJ_REWARD_ICON_ROOT, true); ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon(type, num2, FindCtrl(root, UI.OBJ_MATERIAL_ICON_ROOT), num3, "EQUIP_LIST", 0, false, -1, false, null, false, true, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); num++; } Log.Error(LOG.OUTGAME, "QuestItem sold get item num is zero. type={0},itemId={1}", type, num2); } }
public override void UpdateUI() { SetLabelText((Enum)UI.LBL_TITLE_U, base.sectionData.GetText("TITLE")); SetLabelText((Enum)UI.LBL_TITLE_D, base.sectionData.GetText("TITLE")); int num = 0; int num2 = 0; QuestItemInfo item_info = itemData.GetItemData() as QuestItemInfo; SetGrid(UI.GRD_ICON, string.Empty, 1, false, delegate(int i, Transform t, bool is_recycle) { uint num3 = 0u; EquipItemExceedTable.EquipItemExceedData equipItemExceedData = Singleton <EquipItemExceedTable> .I.GetEquipItemExceedData(item_info.infoData.questData.tableData.rarity, item_info.infoData.questData.tableData.getType, item_info.infoData.questData.tableData.eventId); if (equipItemExceedData != null) { num3 = equipItemExceedData.exchangeItemId; } REWARD_TYPE rEWARD_TYPE = REWARD_TYPE.ITEM; ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon(rEWARD_TYPE, num3, t, sellNum, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); SetMaterialInfo(itemIcon.transform, rEWARD_TYPE, num3, null); itemIcon.SetRewardBG(true); }); SetLabelText((Enum)UI.LBL_GOLD, num.ToString()); SetLabelText((Enum)UI.LBL_EXP, num2.ToString()); SetLabelText((Enum)UI.LBL_SELL, string.Format(base.sectionData.GetText("STR_SELL"), itemData.GetName(), sellNum)); }
private void SetNextItemIcon(List <PointEventCurrentData.Reward> reward) { SetDynamicList((Enum)UI.OBJ_NEXT_REWARD_ITEM_ICON_ROOT, "ItemIcon", reward.Count, true, (Func <int, bool>) null, (Func <int, Transform, Transform>) null, (Action <int, Transform, bool>) delegate(int i, Transform t, bool is_recycle) { PointEventCurrentData.Reward reward2 = reward[i]; ItemIcon.CreateRewardItemIcon((REWARD_TYPE)reward2.type, (uint)reward2.itemId, t, reward2.num, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); }); }
private IEnumerator LoadIcon() { yield return((object)null); LoginBonus.LoginBonusReward r = reward; ItemIcon icon = ItemIcon.CreateRewardItemIcon((REWARD_TYPE)r.type, (uint)r.itemId, GetCtrl(UI.OBJ_DETAIL_ROOT), -1, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); icon.transform.set_localScale(new Vector3(1.5f, 1.5f, 1.5f)); GetCtrl(UI.OBJ_DETAIL_ROOT).set_localPosition(new Vector3(0f, 50f, 0f)); }
public override void UpdateUI() { base.UpdateUI(); if (currentItem != null) { SetLabelText((Enum)UI.LBL_ITEM_NAME, currentItem.name); ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon((REWARD_TYPE)currentItem.type, (uint)currentItem.itemId, GetCtrl(UI.OBJ_ITEM_ICON_ROOT), -1, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); itemIcon.SetEnableCollider(false); ResourceLoad.LoadPointIconImageTexture(GetCtrl(UI.TEX_POINT_ICON).GetComponent <UITexture>(), (uint)pointShop.pointShopId); } SetLabelText((Enum)UI.LBL_CURRENT_CHANGE_NUM, string.Format(StringTable.Get(STRING_CATEGORY.POINT_SHOP, 2u), currentNum)); SetLabelText((Enum)UI.LBL_NEED_POINT, string.Format(StringTable.Get(STRING_CATEGORY.POINT_SHOP, 2u), currentItem.needPoint * currentNum)); }
public override void UpdateUI() { QuestItem.SellItem[] data_ary = sellItem.ToArray(); int item_num = data_ary.Length; SetGrid(UI.GRD_ICON, null, item_num, false, delegate(int i, Transform t, bool is_recycle) { uint itemId = (uint)data_ary[i].itemId; ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon((REWARD_TYPE)data_ary[i].type, itemId, t, data_ary[i].num, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); if (itemIcon != null) { itemIcon.SetRewardBG(true); SetMaterialInfo(itemIcon.transform, (REWARD_TYPE)data_ary[i].type, itemId, null); } }); }
private void SetAllRewardItem(List <PointEventCurrentData.Reward> rewardList) { //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Expected O, but got Unknown //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Expected O, but got Unknown //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b8: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Expected O, but got Unknown Transform ctrl = GetCtrl(UI.OBJ_ITEM_ROOT); for (int j = 0; j < rewardList.Count; j++) { if (j == 0) { Transform val = Utility.FindChild(ctrl, "itemNum"); val.GetComponent <UILabel>().text = "×" + rewardList[j].num; rewardObjects.Add(ctrl.get_gameObject()); } else { GameObject val2 = Object.Instantiate <GameObject>(ctrl.get_gameObject()); val2.get_transform().set_parent(ctrl.get_parent()); val2.get_transform().set_localPosition(ctrl.get_localPosition()); val2.get_transform().set_localScale(ctrl.get_localScale()); Transform val3 = Utility.FindChild(val2.get_transform(), "itemNum"); val3.GetComponent <UILabel>().text = "×" + rewardList[j].num; rewardObjects.Add(val2); } } SetDynamicList((Enum)UI.GRD_ANIM_ITEM_ROOT, "ItemIcon", rewardList.Count, true, (Func <int, bool>) null, (Func <int, Transform, Transform>) null, (Action <int, Transform, bool>) delegate(int i, Transform t, bool is_recycle) { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown PointEventCurrentData.Reward reward = rewardList[i]; ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon((REWARD_TYPE)reward.type, (uint)reward.itemId, t.get_parent(), reward.num, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); if (itemIcon != null) { itemIcon.SetEnableCollider(false); } }); }
public override void UpdateUI() { base.UpdateUI(); SetTable(UI.TBL_LIST, "ShopItemListItem", MonoBehaviourSingleton <ShopManager> .I.shopData.lineups.Count, false, delegate(int i, Transform t, bool b) { ShopList.ShopLineup shopLineup = MonoBehaviourSingleton <ShopManager> .I.shopData.lineups[i]; SetLabelText(t, UI.LBL_NAME, shopLineup.name); SetLabelText(t, UI.LBL_DESCRIPTION, shopLineup.description); SetLabelText(t, UI.LBL_CRYSTAL_NUM, shopLineup.crystalNum.ToString()); SetEvent(t, "SELECT", shopLineup.shopLineupId); uint itemId = (uint)shopLineup.itemIds[0]; ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon(REWARD_TYPE.ITEM, itemId, FindCtrl(t, UI.OBJ_ICON_ROOT), -1, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); if (itemIcon != null) { itemIcon.SetEnableCollider(false); } }); }
protected override void DrawIcon() { SortCompareData[] sell_data_ary = sellData.ToArray(); int reward_num = sell_data_ary.Length; if (crystalNum > 0) { reward_num++; } int sELL_SELECT_MAX = MonoBehaviourSingleton <UserInfoManager> .I.userInfo.constDefine.SELL_SELECT_MAX; SetGrid(UI.GRD_ICON, null, sELL_SELECT_MAX, false, delegate(int i, Transform t, bool is_recycle) { if (i < reward_num) { if (i < sell_data_ary.Length) { int enemy_icon_id = 0; int enemy_icon_id2 = 0; object itemData = sell_data_ary[i].GetItemData(); if (itemData is ItemSortData) { ItemSortData itemSortData = itemData as ItemSortData; enemy_icon_id = itemSortData.itemData.tableData.enemyIconID; enemy_icon_id2 = itemSortData.itemData.tableData.enemyIconID2; } GET_TYPE getType = sell_data_ary[i].GetGetType(); ItemIcon itemIcon = ItemIcon.Create(sell_data_ary[i].GetIconType(), sell_data_ary[i].GetIconID(), sell_data_ary[i].GetRarity(), t, sell_data_ary[i].GetIconElement(), sell_data_ary[i].GetIconMagiEnableType(), sell_data_ary[i].GetNum(), null, 0, false, -1, false, null, false, enemy_icon_id, enemy_icon_id2, false, getType); itemIcon.SetRewardBG(true); SetMaterialInfo(itemIcon.transform, sell_data_ary[i].GetMaterialType(), sell_data_ary[i].GetTableID(), null); } else { ItemIcon itemIcon2 = ItemIcon.CreateRewardItemIcon(REWARD_TYPE.CRYSTAL, 1u, t, crystalNum, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); itemIcon2.SetRewardBG(true); SetMaterialInfo(itemIcon2.transform, REWARD_TYPE.CRYSTAL, 0u, null); } } else { SetActive(t, false); } }); }
private void SetAllRewardItem(UI targetGrid, List <PointEventCurrentData.Reward> rewardList) { SetGrid(targetGrid, "ItemIconReward", rewardList.Count, true, delegate(int i, Transform t, bool is_recycle) { //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) PointEventCurrentData.Reward reward = rewardList[i]; ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon((REWARD_TYPE)reward.type, (uint)reward.itemId, t, reward.num, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); if (itemIcon != null) { itemIcon.SetEnableCollider(false); } t.FindChild("itemNum").GetComponent <UILabel>().text = "×" + rewardList[i].num; if (targetGrid == UI.GRD_NEXT_ITEM_ROOT) { t.set_localScale(new Vector3(0.7f, 0.7f, 1f)); if (i > 2) { itemIcon.VisibleIcon(false, true); } } }); }
protected override void DrawIcon() { base.DrawIcon(); NeedMaterial[] reward_ary = CreateNeedMaterialAry(); int sELL_SELECT_MAX = MonoBehaviourSingleton <UserInfoManager> .I.userInfo.constDefine.SELL_SELECT_MAX; SetGrid(UI.GRD_REWARD_ICON, null, sELL_SELECT_MAX, false, delegate(int i, Transform t, bool is_recycle) { if (i < reward_ary.Length) { NeedMaterial needMaterial = reward_ary[i]; ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon(REWARD_TYPE.ITEM, needMaterial.itemID, t, needMaterial.num, "NONE", 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); itemIcon.SetRewardBG(true); Transform ctrl = GetCtrl(UI.GRD_REWARD_ICON); SetMaterialInfo(itemIcon.transform, REWARD_TYPE.ITEM, needMaterial.itemID, ctrl); } else { SetActive(t, false); } }); SetActive((Enum)UI.STR_NON_REWARD, reward_ary.Length == 0); }
public override void UpdateUI() { SetLabelText((Enum)UI.STR_TITLE, base.sectionData.GetText("STR_TITLE")); SetLabelText((Enum)UI.STR_TITLE_REFLECT, base.sectionData.GetText("STR_TITLE")); int count = MonoBehaviourSingleton <PresentManager> .I.presentData.presents.Count; bool flag = count > 0; SetActive((Enum)UI.BTN_ALL, flag); SetActive((Enum)UI.BTN_ALL_DISABLE, !flag); SetLabelText((Enum)UI.STR_ALL_DISABLE, base.sectionData.GetText("STR_ALL")); SetActive((Enum)UI.STR_NON_LIST, !flag); SetGrid(UI.GRD_LIST, "PresentListItem", count, false, delegate(int i, Transform t, bool b) { Present present = MonoBehaviourSingleton <PresentManager> .I.presentData.presents[i]; SetLabelText(t, UI.LBL_NAME, present.name); SetLabelText(t, UI.LBL_COMMENT, present.comment); SetLabelText(t, UI.LBL_DESC, present.desc); string text = (!string.IsNullOrEmpty(present.expire)) ? present.expire : base.sectionData.GetText("NON_EXPIRE"); SetLabelText(t, UI.LBL_EXPIRE, text); SetLabelText(t, UI.LBL_TIME, present.timeInfo); SetEvent(t, UI.BTN_SELECT, "SELECT", i); ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon((REWARD_TYPE)present.type, (uint)present.itemId, FindCtrl(t, UI.OBJ_ICON_ROOT), -1, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); if (itemIcon != null) { itemIcon.SetEnableCollider(false); } }); int num = 1; int page_num = MonoBehaviourSingleton <PresentManager> .I.page + num; int num2 = Mathf.Max(MonoBehaviourSingleton <PresentManager> .I.pageMax, num); SetPageNumText((Enum)UI.LBL_NOW, page_num); SetPageNumText((Enum)UI.LBL_MAX, num2); SetActive((Enum)UI.OBJ_ACTIVE_ROOT, num != num2); SetActive((Enum)UI.OBJ_INACTIVE_ROOT, num == num2); }
public override void UpdateUI() { UI[] array = new UI[3] { UI.OBJ_MISSION_INFO_1, UI.OBJ_MISSION_INFO_2, UI.OBJ_MISSION_INFO_3 }; UI[] array2 = new UI[3] { UI.OBJ_TOP_CROWN_1, UI.OBJ_TOP_CROWN_2, UI.OBJ_TOP_CROWN_3 }; UI[] array3 = new UI[3] { UI.LBL_MISSION_INFO_1, UI.LBL_MISSION_INFO_2, UI.LBL_MISSION_INFO_3 }; UI[] array4 = new UI[3] { UI.SPR_MISSION_INFO_CROWN_1, UI.SPR_MISSION_INFO_CROWN_2, UI.SPR_MISSION_INFO_CROWN_3 }; UI[] array5 = new UI[3] { UI.SPR_CROWN_1, UI.SPR_CROWN_2, UI.SPR_CROWN_3 }; QuestInfoData info = questInfo; QUEST_TYPE questType = info.questData.tableData.questType; int num = 0; SetFontStyle((Enum)UI.STR_MISSION, 2); SetFontStyle((Enum)UI.STR_TREASURE, 2); SetFontStyle((Enum)UI.STR_SELL, 2); string text = null; switch (questType) { default: text = "STR_QUEST_TYPE_NORMAL"; break; case QUEST_TYPE.ORDER: text = "STR_QUEST_TYPE_ORDER"; break; case QUEST_TYPE.EVENT: text = "STR_QUEST_TYPE_EVENT"; break; case QUEST_TYPE.STORY: text = "STR_QUEST_TYPE_STORY"; break; } SetText((Enum)UI.LBL_QUEST_TYPE, text); SetLabelText((Enum)UI.LBL_QUEST_NUM, string.Format(base.sectionData.GetText("QUEST_NUMBER"), info.questData.tableData.locationNumber, info.questData.tableData.questNumber)); SetLabelText((Enum)UI.LBL_QUEST_NAME, info.questData.tableData.questText); int num2 = (int)info.questData.tableData.limitTime; SetLabelText((Enum)UI.LBL_LIMIT_TIME, $"{num2 / 60:D2}:{num2 % 60:D2}"); SetActive((Enum)UI.LBL_GUILD_REQUEST_NEED_POINT, false); SetActive((Enum)UI.STR_MISSION_EMPTY, false); if (!info.isExistMission) { SetActive((Enum)UI.OBJ_MISSION_INFO_ROOT, false); } else { SetActive((Enum)UI.OBJ_MISSION_INFO_ROOT, true); int i = 0; for (int num3 = info.missionData.Length; i < num3; i++) { SetActive((Enum)array[i], info.missionData[i] != null); SetActive((Enum)array2[i], info.missionData[i] != null); if (info.missionData[i] != null) { SetActive((Enum)array4[i], info.missionData[i].state >= CLEAR_STATUS.CLEAR); SetActive((Enum)array5[i], info.missionData[i].state >= CLEAR_STATUS.CLEAR); SetLabelText((Enum)array3[i], info.missionData[i].tableData.missionText); } } } if (questType == QUEST_TYPE.ORDER) { SetActive((Enum)UI.OBJ_SELL_ITEM, true); QuestItemInfo quest_item = MonoBehaviourSingleton <InventoryManager> .I.GetQuestItem(info.questData.tableData.questID); if (quest_item != null && quest_item.sellItems != null && quest_item.sellItems.Count > 0) { SetGrid(UI.GRD_REWARD_SELL, string.Empty, quest_item.sellItems.Count, false, delegate(int i_2, Transform t_2, bool is_recycle_2) { QuestItem.SellItem sellItem = quest_item.sellItems[i_2]; REWARD_TYPE type2 = (REWARD_TYPE)sellItem.type; uint itemId = (uint)sellItem.itemId; if (sellItem.num <= 0) { Log.Error(LOG.OUTGAME, "QuestItem sold get item num is zero. type={0},itemId={1}", type2, itemId); } else { int num4 = -1; ItemIcon itemIcon4 = ItemIcon.CreateRewardItemIcon(type2, itemId, t_2, num4, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); SetMaterialInfo(itemIcon4.transform, type2, itemId, null); } }); } SetActive((Enum)UI.OBJ_TOP_CROWN_ROOT, false); } SetActive((Enum)UI.OBJ_TREASURE, true); SetGrid(UI.GRD_REWARD_QUEST, string.Empty, 5, false, delegate(int i_2, Transform t_2, bool is_recycle_2) { if (info.questData.reward != null && info.questData.reward.Length > i_2) { REWARD_TYPE type = (REWARD_TYPE)info.questData.reward[i_2].type; uint id = (uint)info.questData.reward[i_2].id; ItemIcon itemIcon3 = ItemIcon.CreateRewardItemIcon(type, id, t_2, -1, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); SetMaterialInfo(itemIcon3.transform, type, id, null); } }); EnemyTable.EnemyData enemyData = Singleton <EnemyTable> .I.GetEnemyData((uint)info.questData.tableData.GetMainEnemyID()); if (enemyData != null) { int iconId = enemyData.iconId; RARITY_TYPE?rarity = (info.questData.tableData.questType != QUEST_TYPE.ORDER) ? null : new RARITY_TYPE?(info.questData.tableData.rarity); ItemIcon itemIcon = ItemIcon.Create(ITEM_ICON_TYPE.QUEST_ITEM, iconId, rarity, GetCtrl(UI.OBJ_ENEMY), enemyData.element, null, -1, null, 0, false, -1, false, null, false, 0, 0, false, GET_TYPE.PAY); itemIcon.SetEnableCollider(false); ItemIcon itemIcon2 = ItemIcon.Create(ITEM_ICON_TYPE.QUEST_ITEM, iconId, rarity, GetCtrl(UI.OBJ_ENEMY), enemyData.element, null, -1, null, 0, false, -1, false, null, false, 0, 0, false, GET_TYPE.PAY); itemIcon2.SetEnableCollider(false); } SetActive((Enum)UI.SPR_ELEMENT_ROOT, false); if (enemyData != null) { SetActive((Enum)UI.SPR_ELEMENT_ROOT_2, true); SetElementSprite((Enum)UI.SPR_ELEMENT_2, (int)enemyData.element); SetActive((Enum)UI.STR_NON_ELEMENT_2, enemyData.element == ELEMENT_TYPE.MAX); SetElementSprite((Enum)UI.SPR_WEAK_ELEMENT_2, (int)enemyData.weakElement); SetActive((Enum)UI.STR_NON_WEAK_ELEMENT_2, enemyData.weakElement == ELEMENT_TYPE.MAX); } else { SetActive((Enum)UI.SPR_ELEMENT_ROOT_2, false); SetActive((Enum)UI.STR_NON_WEAK_ELEMENT_2, false); } ShowInfo(questType, isShowDropInfo); SetActive((Enum)UI.TWN_DIFFICULT_STAR, false); num = (MonoBehaviourSingleton <QuestManager> .I.GetClearStatusQuestEnemySpecies(info.questData.tableData.questID)?.questStatus ?? 1); SetClearStatus((CLEAR_STATUS)num); if (!MonoBehaviourSingleton <UserInfoManager> .I.isGuildRequestOpen) { SetActive((Enum)UI.BTN_GUILD_REQUEST, false); } }
protected override void DrawIcon() { SortCompareData[] sell_data_ary = sellData.ToArray(); int reward_num = sell_data_ary.Length; if (crystalNum > 0) { reward_num++; } if (totalGold > 0) { reward_num++; } if (missionPointData != null && missionPointData.missionPoint > 0) { reward_num++; } bool shouldAddGold = totalGold > 0; bool shouldAddMissionPoint = missionPointData != null && missionPointData.missionPoint > 0; int sELL_SELECT_MAX = MonoBehaviourSingleton <UserInfoManager> .I.userInfo.constDefine.SELL_SELECT_MAX; SetGrid(UI.GRD_ICON, null, sELL_SELECT_MAX, false, delegate(int i, Transform t, bool is_recycle) { if (i < reward_num) { if (i < sell_data_ary.Length) { int enemy_icon_id = 0; int enemy_icon_id2 = 0; object itemData = sell_data_ary[i].GetItemData(); if (itemData is ItemSortData) { ItemSortData itemSortData = itemData as ItemSortData; enemy_icon_id = itemSortData.itemData.tableData.enemyIconID; enemy_icon_id2 = itemSortData.itemData.tableData.enemyIconID2; } GET_TYPE getType = sell_data_ary[i].GetGetType(); ItemIcon itemIcon = ItemIcon.Create(sell_data_ary[i].GetIconType(), sell_data_ary[i].GetIconID(), sell_data_ary[i].GetRarity(), t, sell_data_ary[i].GetIconElement(), sell_data_ary[i].GetIconMagiEnableType(), sell_data_ary[i].GetNum(), null, 0, false, -1, false, null, false, enemy_icon_id, enemy_icon_id2, false, getType); itemIcon.SetRewardBG(true); SetMaterialInfo(itemIcon.transform, sell_data_ary[i].GetMaterialType(), sell_data_ary[i].GetTableID(), null); } else if (shouldAddGold) { ItemIcon itemIcon2 = ItemIcon.CreateRewardItemIcon(REWARD_TYPE.MONEY, 1u, t, totalGold, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); itemIcon2.SetRewardBG(true); SetMaterialInfo(itemIcon2.transform, REWARD_TYPE.MONEY, 0u, null); shouldAddGold = false; } else if (shouldAddMissionPoint) { ItemIcon.GetIconShowData(REWARD_TYPE.POINT_SHOP_POINT, (uint)missionPointData.pointShopId, out int icon_id, out ITEM_ICON_TYPE icon_type, out RARITY_TYPE? rarity, out ELEMENT_TYPE element, out EQUIPMENT_TYPE? _, out int _, out int _, out GET_TYPE _, 0); ItemIcon itemIcon3 = ItemIcon.Create(icon_type, icon_id, rarity, t, element, null, missionPointData.missionPoint, null, 0, false, -1, false, null, false, 0, 0, false, GET_TYPE.PAY); itemIcon3.SetRewardBG(true); int id = (!missionPointData.isEvent) ? 1 : 0; SetMaterialInfo(itemIcon3.transform, REWARD_TYPE.POINT_SHOP_POINT, (uint)id, null); shouldAddMissionPoint = false; } else { ItemIcon itemIcon4 = ItemIcon.CreateRewardItemIcon(REWARD_TYPE.CRYSTAL, 1u, t, crystalNum, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); itemIcon4.SetRewardBG(true); SetMaterialInfo(itemIcon4.transform, REWARD_TYPE.CRYSTAL, 0u, null); } } else { SetActive(t, false); } }); }
protected override void DrawIcon() { SortCompareData[] itemData = sellData.ToArray(); int reward_num = itemData.Length; if (crystalNum > 0) { reward_num++; } if (totalGold > 0) { reward_num++; } bool shouldAddGold = totalGold > 0; int sELL_SELECT_MAX = MonoBehaviourSingleton <UserInfoManager> .I.userInfo.constDefine.SELL_SELECT_MAX; SetGrid(UI.GRD_ICON, null, sELL_SELECT_MAX, false, delegate(int i, Transform t, bool is_recycle) { if (i < reward_num) { if (i < itemData.Length) { int enemy_icon_id = 0; int enemy_icon_id2 = 0; object itemData2 = itemData[i].GetItemData(); if (itemData2 is ItemSortData) { ItemSortData itemSortData = itemData2 as ItemSortData; enemy_icon_id = itemSortData.itemData.tableData.enemyIconID; enemy_icon_id2 = itemSortData.itemData.tableData.enemyIconID2; } ItemIcon itemIcon = null; if (itemData[i].GetIconType() == ITEM_ICON_TYPE.QUEST_ITEM) { itemIcon = ItemIcon.Create(new ItemIcon.ItemIconCreateParam { icon_type = itemData[i].GetIconType(), icon_id = itemData[i].GetIconID(), rarity = new RARITY_TYPE?(itemData[i].GetRarity()), parent = t, element = itemData[i].GetIconElement(), magi_enable_equip_type = itemData[i].GetIconMagiEnableType(), num = itemData[i].GetNum(), enemy_icon_id = enemy_icon_id, enemy_icon_id2 = enemy_icon_id2, questIconSizeType = ItemIcon.QUEST_ICON_SIZE_TYPE.REWARD_DELIVERY_LIST }); } else { GET_TYPE getType = itemData[i].GetGetType(); itemIcon = ItemIcon.Create(itemData[i].GetIconType(), itemData[i].GetIconID(), itemData[i].GetRarity(), t, itemData[i].GetIconElement(), itemData[i].GetIconMagiEnableType(), itemData[i].GetNum(), null, 0, false, -1, false, null, false, enemy_icon_id, enemy_icon_id2, false, getType); } itemIcon.SetRewardBG(true); SetMaterialInfo(itemIcon.transform, itemData[i].GetMaterialType(), itemData[i].GetTableID(), null); } else if (shouldAddGold) { ItemIcon itemIcon2 = ItemIcon.CreateRewardItemIcon(REWARD_TYPE.MONEY, 1u, t, totalGold, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); itemIcon2.SetRewardBG(true); SetMaterialInfo(itemIcon2.transform, REWARD_TYPE.MONEY, 0u, null); shouldAddGold = false; } else { ItemIcon itemIcon3 = ItemIcon.CreateRewardItemIcon(REWARD_TYPE.CRYSTAL, 1u, t, crystalNum, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); itemIcon3.SetRewardBG(true); SetMaterialInfo(itemIcon3.transform, REWARD_TYPE.CRYSTAL, 0u, null); } } else { SetActive(t, false); } }); }
protected void SetUpItemIcon(PointShopItem item) { ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon((REWARD_TYPE)item.type, (uint)item.itemId, itemIconRoot, -1, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); itemIcon.SetEnableCollider(false); }
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); } } }
public override void UpdateUI() { //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_0145: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_01df: Unknown result type (might be due to invalid IL or missing references) //IL_01e4: Expected O, but got Unknown //IL_05e2: Unknown result type (might be due to invalid IL or missing references) //IL_05ff: Unknown result type (might be due to invalid IL or missing references) //IL_07e0: Unknown result type (might be due to invalid IL or missing references) //IL_07ed: Unknown result type (might be due to invalid IL or missing references) OpenTutorial(); UpdateTitle(); SetSprite(baseRoot, UI.SPR_WINDOW, SPR_WINDOW_TYPE[info.DeliveryTypeIndex()]); SetSprite(baseRoot, UI.SPR_MESSAGE_BG, SPR_MESSAGE_BG_TYPE[info.DeliveryTypeIndex()]); bool flag = false; if (Object.op_Implicit(submissionFrame)) { UpdateSubMissionButton(); UpdateSubMission(); flag = submissionFrame.get_gameObject().get_activeSelf(); SetActive((Enum)UI.STR_BTN_SUBMISSION, !flag); SetActive((Enum)UI.STR_BTN_SUBMISSION_BACK, flag); } Transform root = targetFrame; MonoBehaviourSingleton <DeliveryManager> .I.GetTargetEnemyData(deliveryID, out targetQuestID, out targetMapID, out string map_name, out string enemy_name, out DIFFICULTY_TYPE?difficulty, out targetPortalID); SetLabelText(root, UI.LBL_PLACE_NAME, map_name); MonoBehaviourSingleton <DeliveryManager> .I.GetAllProgressDelivery(deliveryID, out int have, out int need); SetLabelText(root, UI.LBL_HAVE, (!isComplete) ? have.ToString() : need.ToString()); SetColor(root, UI.LBL_HAVE, (!isComplete) ? Color.get_red() : Color.get_white()); SetLabelText(root, UI.LBL_NEED, need.ToString()); SetLabelText(root, UI.LBL_NEED_ITEM_NAME, MonoBehaviourSingleton <DeliveryManager> .I.GetTargetItemName(deliveryID, 0u)); if (info.IsDefeatCondition(0u)) { if (targetQuestID != 0) { isQuestEnemy = true; Transform val = FindCtrl(root, UI.OBJ_DIFFICULTY_ROOT); int value = (int)difficulty.Value; int j = 0; for (int childCount = val.get_childCount(); j < childCount; j++) { Transform t2 = val.GetChild(j); SetActive(t2, j <= value); } SetLabelText(root, UI.LBL_GET_PLACE, base.sectionData.GetText("GET_QUEST")); } else { isQuestEnemy = false; SetLabelText(root, UI.LBL_GET_PLACE, base.sectionData.GetText("GET_AREA")); } SetLabelText(root, UI.LBL_ENEMY_NAME, string.Format(StringTable.Get(STRING_CATEGORY.TEXT_SCRIPT, 3u), enemy_name)); } else { isQuestEnemy = false; SetLabelText(root, UI.LBL_GET_PLACE, StringTable.Get(STRING_CATEGORY.DELIVERY_CONDITION_PLACE, (uint)info.GetConditionType(0u))); SetLabelText(root, UI.LBL_ENEMY_NAME, enemy_name); } SetActive(root, UI.OBJ_DIFFICULTY_ROOT, isQuestEnemy); SetActive(root, UI.OBJ_ENEMY_NAME_ROOT, !isQuestEnemy); UpdateNPC(map_name, enemy_name); if ((isComplete || isNotice) && !isCompletedEventDelivery) { SetActive((Enum)UI.OBJ_BACK, false); SetActive((Enum)UI.BTN_CREATE, false); SetActive((Enum)UI.BTN_JOIN, false); SetActive((Enum)UI.BTN_MATCHING, false); UpdateUIJumpButton(JumpButtonType.Complete); } else { SetActive((Enum)UI.OBJ_BACK, true); bool flag2 = true; bool flag3 = false; if (info == null || info.IsDefeatCondition(0u) || targetMapID != 0) { if (isQuestEnemy) { if (isInGameScene) { flag2 = false; } } else { bool flag4 = FieldManager.HasWorldMap(targetMapID); if (isInGameScene) { if (MonoBehaviourSingleton <FieldManager> .I.currentMapID == targetMapID) { if (flag4) { flag3 = true; } else { flag2 = false; } } else if (flag4) { if (!MonoBehaviourSingleton <FieldManager> .I.CanJumpToMap(targetMapID) || WorldMapManager.IsValidPortalIDs(targetPortalID)) { flag3 = true; } } else if (!MonoBehaviourSingleton <FieldManager> .I.CanJumpToMap(targetMapID)) { flag2 = false; } } else if (flag4) { if (!MonoBehaviourSingleton <FieldManager> .I.CanJumpToMap(targetMapID) || WorldMapManager.IsValidPortalIDs(targetPortalID)) { flag3 = true; } } else if (!MonoBehaviourSingleton <FieldManager> .I.CanJumpToMap(targetMapID)) { flag2 = false; } } } else { flag2 = (info.GetDeliveryJumpType() != DeliveryTable.DELIVERY_JUMPTYPE.UNDEFINED); } JumpButtonType jumpButtonType = JumpButtonType.Invalid; if (flag2) { if (info != null && info.GetDeliveryJumpType() != 0) { jumpButtonType = ConvertDeliveryJumpType(); } else { if (info != null) { QuestTable.QuestTableData questData = info.GetQuestData(); if (questData != null && questData.questType == QUEST_TYPE.WAVE) { jumpButtonType = JumpButtonType.WaveRoom; } } if (jumpButtonType != JumpButtonType.WaveRoom) { jumpButtonType = ((!flag3) ? JumpButtonType.Quest : JumpButtonType.Map); } } UpdateUIJumpButton(jumpButtonType); } else { SetActive(baseRoot, UI.BTN_JUMP_QUEST, false); SetActive(baseRoot, UI.BTN_JUMP_MAP, false); SetActive(baseRoot, UI.BTN_JUMP_GACHATOP, false); SetActive(baseRoot, UI.BTN_JUMP_INVALID, false); SetActive(baseRoot, UI.BTN_WAVEMATCH_NEW, false); SetActive(baseRoot, UI.BTN_WAVEMATCH_PASS, false); SetActive(baseRoot, UI.BTN_WAVEMATCH_AUTO, false); SetActive(baseRoot, UI.BTN_COMPLETE, false); } if (flag3 && MonoBehaviourSingleton <FieldManager> .I.currentMapID != targetMapID) { SetColor(baseRoot, UI.LBL_PLACE_NAME, Color.get_red()); } else { SetColor(baseRoot, UI.LBL_PLACE_NAME, Color.get_white()); } } int money = 0; int exp = 0; if (rewardData != null) { SetGrid(baseRoot, UI.GRD_REWARD, string.Empty, rewardData.Length, false, delegate(int i, Transform t, bool is_recycle) { DeliveryRewardTable.DeliveryRewardData.Reward reward = rewardData[i].reward; bool is_visible = false; if (reward.type == REWARD_TYPE.MONEY) { money += reward.num; } else if (reward.type == REWARD_TYPE.EXP) { exp += reward.num; } else { is_visible = true; ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon(reward.type, reward.item_id, t, reward.num, string.Empty, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.REWARD_DELIVERY_DETAIL); SetMaterialInfo(itemIcon.transform, reward.type, reward.item_id, null); itemIcon.SetRewardBG(true); } SetActive(t, is_visible); }); } SetLabelText(baseRoot, UI.LBL_MONEY, money.ToString()); SetLabelText(baseRoot, UI.LBL_EXP, exp.ToString()); SetActive(baseRoot, UI.OBJ_COMPLETE_ROOT, isComplete && !flag); SetActive(baseRoot, UI.OBJ_UNLOCK_PORTAL_ROOT, isComplete); if (isComplete) { string text = string.Empty; List <FieldMapTable.PortalTableData> deliveryRelationPortalData = Singleton <FieldMapTable> .I.GetDeliveryRelationPortalData(info.id); switch (deliveryRelationPortalData.Count) { case 1: { FieldMapTable.FieldMapTableData fieldMapData = Singleton <FieldMapTable> .I.GetFieldMapData(deliveryRelationPortalData[0].srcMapID); if (fieldMapData != null) { text = fieldMapData.mapName; } break; } default: text = base.sectionData.GetText("MULTI_UNLOCK"); break; case 0: break; } bool flag5 = !string.IsNullOrEmpty(text); if (!TutorialStep.HasFirstDeliveryCompleted()) { flag5 = false; } SetActive(baseRoot, UI.OBJ_UNLOCK_PORTAL_ROOT, flag5 && !isCompletedEventDelivery); SetLabelText(baseRoot, UI.LBL_UNLOCK_PORTAL, text); if (isCompletedEventDelivery) { SkipTween(baseRoot, UI.OBJ_COMPLETE_ROOT, true, 0); } else { this.StartCoroutine(StartTweenCoroutine(flag5)); } } this.StartCoroutine(SetPointShopGetPointUI()); }
public override void UpdateUI() { bool flag = MonoBehaviourSingleton <GachaManager> .I.selectGacha.num == 1; SetActive((Enum)UI.OBJ_SINGLE_ROOT, flag); SetActive((Enum)UI.OBJ_MULTI_ROOT, !flag); if (flag) { GachaResult.GachaReward gachaReward = MonoBehaviourSingleton <GachaManager> .I.gachaResult.reward[0]; SkillItemTable.SkillItemData skillItemData = Singleton <SkillItemTable> .I.GetSkillItemData((uint)gachaReward.itemId); if (skillItemData == null) { SetActive((Enum)UI.OBJ_SINGLE_ROOT, false); } SetLabelText((Enum)UI.LBL_NAME, skillItemData.name); SetLabelText((Enum)UI.LBL_ATK, skillItemData.baseAtk.ToString()); SetLabelText((Enum)UI.LBL_DEF, skillItemData.baseDef.ToString()); SetLabelText((Enum)UI.LBL_HP, skillItemData.baseHp.ToString()); SetLabelText((Enum)UI.LBL_DESCRIPTION, skillItemData.GetExplanationText(1)); SetRenderSkillItemModel((Enum)UI.TEX_MODEL, skillItemData.id, true, false); SetRenderSkillItemSymbolModel((Enum)UI.TEX_INNER_MODEL, skillItemData.id, true); RARITY_TYPE[] array = (RARITY_TYPE[])Enum.GetValues(typeof(RARITY_TYPE)); int i = 0; for (int num = array.Length; i < num; i++) { SetActive((Enum)rarityAnimRoot[i], skillItemData.rarity == array[i]); } ResetTween((Enum)rarityAnimRoot[(int)skillItemData.rarity], 0); ResetTween((Enum)UI.OBJ_RARITY_TEXT_ROOT, 0); if (skillItemData.rarity <= RARITY_TYPE.C) { ResetTween((Enum)UI.OBJ_RARITY_LIGHT, 0); PlayTween((Enum)UI.OBJ_RARITY_LIGHT, true, (EventDelegate.Callback)null, false, 0); } PlayTween((Enum)rarityAnimRoot[(int)skillItemData.rarity], true, (EventDelegate.Callback)null, false, 0); PlayTween((Enum)UI.OBJ_RARITY_TEXT_ROOT, true, (EventDelegate.Callback)null, false, 0); if (AnimationDirector.I is SkillGachaDirector) { (AnimationDirector.I as SkillGachaDirector).PlayUIRarityEffect(skillItemData.rarity, GetCtrl(UI.OBJ_RARITY_ROOT), GetCtrl(rarityAnimRoot[(int)skillItemData.rarity])); } } else { int index = 0; MonoBehaviourSingleton <GachaManager> .I.gachaResult.reward.ForEach(delegate(GachaResult.GachaReward reward) { bool flag2 = false; Transform ctrl = GetCtrl(iconRootAry[index]); SkillItemTable.SkillItemData skillItemData2 = Singleton <SkillItemTable> .I.GetSkillItemData((uint)reward.itemId); if (skillItemData2 == null) { SetActive(ctrl, false); } else { SetActive(ctrl, true); bool is_new = flag2; ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon(REWARD_TYPE.SKILL_ITEM, (uint)reward.itemId, ctrl, -1, null, 0, is_new, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); itemIcon.SetEnableCollider(false); Transform ctrl2 = GetCtrl(magiNameAry[index]); SetLabelText(ctrl2, skillItemData2.name); SetEvent(GetCtrl(iconRootAry[index]), "SKILL_DETAIL", index); index++; } }); } int num2 = MonoBehaviourSingleton <UserInfoManager> .I.userStatus.crystal; if (MonoBehaviourSingleton <GachaManager> .I.selectGacha.requiredItemId > 0) { ItemTable.ItemData itemData = Singleton <ItemTable> .I.GetItemData((uint)MonoBehaviourSingleton <GachaManager> .I.selectGacha.requiredItemId); UITexture[] array2 = new UITexture[3] { FindCtrl(GetCtrl(UI.OBJ_GACHA_DISABLE_ROOT), UI.TEX_TICKET).GetComponent <UITexture>(), FindCtrl(GetCtrl(UI.OBJ_GACHA_ENABLE_ROOT), UI.TEX_TICKET).GetComponent <UITexture>(), GetCtrl(UI.TEX_TICKET_HAVE).GetComponent <UITexture>() }; UITexture[] array3 = array2; foreach (UITexture ui_tex in array3) { ResourceLoad.LoadItemIconTexture(ui_tex, itemData.iconID); } num2 = MonoBehaviourSingleton <InventoryManager> .I.GetItemNum((ItemInfo x) => x.tableData.id == itemData.id, 1, false); } SetActive(footerRoot, UI.SPR_CRYSTAL, MonoBehaviourSingleton <GachaManager> .I.selectGacha.requiredItemId == 0); SetActive(footerRoot, UI.TEX_TICKET_HAVE, MonoBehaviourSingleton <GachaManager> .I.selectGacha.requiredItemId > 0); SetLabelText(footerRoot, UI.LBL_CRYSTAL_NUM, num2.ToString()); SetGachaButtonActive(!MonoBehaviourSingleton <GachaManager> .I.IsSelectTutorialGacha() && MonoBehaviourSingleton <GachaManager> .I.gachaResult.remainCount != 0); }
public override void UpdateUI() { //IL_031e: Unknown result type (might be due to invalid IL or missing references) SetFullScreenButton((Enum)UI.BTN_SKIP_FULL_SCREEN); SetHeight((Enum)UI.BTN_SKIP_IN_SCROLL, dropLineNum * 100); SetActive((Enum)UI.BTN_NEXT, false); QuestTable.QuestTableData questData = Singleton <QuestTable> .I.GetQuestData(MonoBehaviourSingleton <QuestManager> .I.currentQuestID); SetLabelText((Enum)UI.LBL_QUEST_NAME, questData.questText); string text = string.Format(StringTable.Get(STRING_CATEGORY.RUSH_WAVE, 10004400u), MonoBehaviourSingleton <InGameManager> .I.GetCurrentWaveNum()); SetLabelText((Enum)UI.LBL_WAVE, text); SetLabelText((Enum)UI.LBL_TIME, MonoBehaviourSingleton <InGameProgress> .I.GetRushRemainTimeToString()); SetActive((Enum)UI.GET_ITEM, true); int num = 0; if (isVictory) { List <QuestCompleteRewardList> rushRewards = MonoBehaviourSingleton <InGameManager> .I.rushRewards; SetTable(GetCtrl(UI.OBJ_TREASURE_ROOT), UI.TBL_DROP_ITEM, "RushWaveDropItem", resultRewards.Length, true, delegate(int i, Transform t, bool is_recycle) { t.set_name("wave" + MonoBehaviourSingleton <InGameManager> .I.GetWaveNum(i)); SetDropItemIcon(resultRewards[i].dropItemIconData, t, MonoBehaviourSingleton <InGameManager> .I.GetWaveNum(i)); }); for (int j = 0; j < rushRewards.Count; j++) { QuestCompleteRewardList questCompleteRewardList = rushRewards[j]; QuestCompleteReward dropReward = resultRewards[j].dropReward; QuestCompleteReward breakReward = questCompleteRewardList.breakReward; QuestCompleteReward order = questCompleteRewardList.order; num = num + dropReward.money + breakReward.money + order.money; } if (firstRewards.Length > 0) { SetActive((Enum)UI.OBJ_ARRIVAL_EFFECT_ROOT, true); int index = MonoBehaviourSingleton <InGameManager> .I.GetRushIndex() - ((MonoBehaviourSingleton <InGameProgress> .I.progressEndType != InGameProgress.PROGRESS_END_TYPE.QUEST_VICTORY) ? 1 : 0); int waveNum = MonoBehaviourSingleton <InGameManager> .I.GetWaveNum(index); UISprite component = GetCtrl(UI.SPR_WAVE_01).GetComponent <UISprite>(); UISprite component2 = GetCtrl(UI.SPR_WAVE_10).GetComponent <UISprite>(); UISprite component3 = GetCtrl(UI.SPR_WAVE_100).GetComponent <UISprite>(); string text2 = waveNum.ToString("D3"); component.spriteName = "RushArrival_Wave_Txt_" + text2[2]; component2.spriteName = "RushArrival_Wave_Txt_" + text2[1]; component3.spriteName = ((waveNum < 100) ? string.Empty : ("RushArrival_Wave_Txt_" + text2[0])); SetActive((Enum)UI.OBJ_ARRIVAL_EFFECT_ROOT, false); SetActive((Enum)UI.OBJ_ARRIVAL_BONUS, true); SetGrid(UI.GRD_ARRIVAL_ITEM_ICON, "ItemIconReward", firstRewards.Length, true, delegate(int i, Transform t, bool is_recycle) { //IL_0031: Unknown result type (might be due to invalid IL or missing references) PointEventCurrentData.Reward reward = firstRewards[i]; ItemIcon.CreateRewardItemIcon((REWARD_TYPE)reward.type, (uint)reward.itemId, t, reward.num, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); t.FindChild("itemNum").GetComponent <UILabel>().text = "×" + firstRewards[i].num; }); SetActive((Enum)UI.OBJ_ARRIVAL_BONUS, false); } } SetLabelText((Enum)UI.LBL_REWARD_GOLD, num.ToString("N0")); bool flag = pointShopResultData.Count > 0; SetActive((Enum)UI.OBJ_POINT_SHOP_RESULT_ROOT, flag); if (flag) { SetGrid(UI.OBJ_POINT_SHOP_RESULT_ROOT, "QuestResultPointShop", pointShopResultData.Count, true, delegate(int i, Transform t, bool b) { ResetTween(t, 0); PointShopResultData pointShopResultData = base.pointShopResultData[i]; SetActive(t, UI.OBJ_NORMAL_POINT_SHOP_ROOT, !pointShopResultData.isEvent); if (!pointShopResultData.isEvent) { SetLabelText(t, UI.LBL_NORMAL_GET_POINT_SHOP, string.Format("+" + StringTable.Get(STRING_CATEGORY.POINT_SHOP, 2u), pointShopResultData.getPoint)); SetLabelText(t, UI.LBL_NORMAL_TOTAL_POINT_SHOP, string.Format(StringTable.Get(STRING_CATEGORY.POINT_SHOP, 2u), pointShopResultData.totalPoint)); UITexture component4 = FindCtrl(t, UI.TEX_NORMAL_POINT_SHOP_ICON).GetComponent <UITexture>(); ResourceLoad.LoadPointIconImageTexture(component4, (uint)pointShopResultData.pointShopId); } SetActive(t, UI.OBJ_EVENT_POINT_SHOP_ROOT, pointShopResultData.isEvent); if (pointShopResultData.isEvent) { SetLabelText(t, UI.LBL_EVENT_GET_POINT_SHOP, string.Format("+" + StringTable.Get(STRING_CATEGORY.POINT_SHOP, 2u), pointShopResultData.getPoint)); SetLabelText(t, UI.LBL_EVENT_TOTAL_POINT_SHOP, string.Format(StringTable.Get(STRING_CATEGORY.POINT_SHOP, 2u), pointShopResultData.totalPoint)); UITexture component5 = FindCtrl(t, UI.TEX_EVENT_POINT_SHOP_ICON).GetComponent <UITexture>(); ResourceLoad.LoadPointIconImageTexture(component5, (uint)pointShopResultData.pointShopId); } }); } this.StartCoroutine(PlayAnimation()); }
public override void UpdateUI() { bool flag = MonoBehaviourSingleton <GachaManager> .I.selectGacha.num == 1; SetActive((Enum)UI.OBJ_SINGLE_ROOT, flag); SetActive((Enum)UI.OBJ_MULTI_ROOT, !flag); SetActive((Enum)UI.OBJ_BG_SINGLE, flag); SetActive((Enum)UI.OBJ_BG_MULTI, !flag); if (flag) { string text = string.Empty; int star_num = 0; GachaResult.GachaReward gachaReward = MonoBehaviourSingleton <GachaManager> .I.gachaResult.reward[0]; QuestTable.QuestTableData questData = Singleton <QuestTable> .I.GetQuestData((uint)gachaReward.itemId); if (questData != null) { text = questData.questText; star_num = (int)questData.difficulty; } SetLabelText((Enum)UI.LBL_NAME, text); RARITY_TYPE[] array = (RARITY_TYPE[])Enum.GetValues(typeof(RARITY_TYPE)); int i = 0; for (int num = array.Length; i < num; i++) { SetActive((Enum)rarityAnimRoot[i], questData.rarity == array[i]); } SetGachaQuestDifficulty(UI.OBJ_DIFFICULTY_ROOT, star_num); ResetTween((Enum)UI.OBJ_DIFFICULTY_ROOT, 0); ResetTween((Enum)rarityAnimRoot[(int)questData.rarity], 0); ResetTween((Enum)UI.OBJ_RARITY_TEXT_ROOT, 0); if (questData.rarity <= RARITY_TYPE.C) { ResetTween((Enum)UI.OBJ_RARITY_LIGHT, 0); PlayTween((Enum)UI.OBJ_RARITY_LIGHT, true, (EventDelegate.Callback)null, false, 0); } PlayTween((Enum)UI.OBJ_RARITY_TEXT_ROOT, true, (EventDelegate.Callback)null, false, 0); PlayTween((Enum)rarityAnimRoot[(int)questData.rarity], true, (EventDelegate.Callback) delegate { PlayTween((Enum)UI.OBJ_DIFFICULTY_ROOT, true, (EventDelegate.Callback)null, false, 0); }, false, 0); QuestGachaDirectorBase questGachaDirectorBase = AnimationDirector.I as QuestGachaDirectorBase; if (questGachaDirectorBase != null) { questGachaDirectorBase.PlayRarityAudio(questData.rarity, true); questGachaDirectorBase.PlayUIRarityEffect(questData.rarity, GetCtrl(UI.OBJ_RARITY_ROOT), GetCtrl(rarityAnimRoot[(int)questData.rarity])); } } else { int index = 0; MonoBehaviourSingleton <GachaManager> .I.gachaResult.reward.ForEach(delegate(GachaResult.GachaReward reward) { bool flag2 = false; int num3 = 0; QuestItemInfo questItem = MonoBehaviourSingleton <InventoryManager> .I.GetQuestItem((uint)reward.itemId); if (questItem != null) { flag2 = GameSaveData.instance.IsNewItem(ITEM_ICON_TYPE.QUEST_ITEM, questItem.uniqueID); flag2 = IsNewItemQuestEnemySpecies(questItem); num3 = questItem.infoData.questData.tableData.GetMainEnemyLv(); } bool is_new = flag2; ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon(REWARD_TYPE.QUEST_ITEM, (uint)reward.itemId, GetCtrl(iconRootAry[index]), -1, null, 0, is_new, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); itemIcon.SetEnableCollider(false); string text2 = string.Empty; if (num3 > 0) { text2 = string.Format(StringTable.Get(STRING_CATEGORY.MAIN_STATUS, 1u), num3.ToString()); } SetLabelText(GetCtrl(iconRootAry[index]), iconLevelAry[index], text2); SetEvent(GetCtrl(iconRootAry[index]), "QUEST_DETAIL", index); index++; }); } int num2 = MonoBehaviourSingleton <UserInfoManager> .I.userStatus.crystal; if (MonoBehaviourSingleton <GachaManager> .I.selectGacha.requiredItemId > 0) { ItemTable.ItemData itemData = Singleton <ItemTable> .I.GetItemData((uint)MonoBehaviourSingleton <GachaManager> .I.selectGacha.requiredItemId); UITexture[] array2 = new UITexture[3] { FindCtrl(FindCtrl(footerRoot, UI.OBJ_GACHA_DISABLE_ROOT), UI.TEX_TICKET).GetComponent <UITexture>(), FindCtrl(FindCtrl(footerRoot, UI.OBJ_GACHA_ENABLE_ROOT), UI.TEX_TICKET).GetComponent <UITexture>(), FindCtrl(footerRoot, UI.TEX_TICKET_HAVE).GetComponent <UITexture>() }; UITexture[] array3 = array2; foreach (UITexture ui_tex in array3) { ResourceLoad.LoadItemIconTexture(ui_tex, itemData.iconID); } num2 = MonoBehaviourSingleton <InventoryManager> .I.GetItemNum((ItemInfo x) => x.tableData.id == itemData.id, 1, false); if (MonoBehaviourSingleton <GachaManager> .I.gachaResult.counter >= 0) { SetActive(footerRoot, UI.GACHATICKETCOUNTERSRESULT, false); SetActive(footerRoot, UI.S_COUNTER, false); SetActive(footerRoot, UI.S_AVAILABLE, true); } else if (MonoBehaviourSingleton <GachaManager> .I.gachaResult.counter > 0) { SetActive(footerRoot, UI.GACHATICKETCOUNTERSRESULT, true); SetActive(footerRoot, UI.S_COUNTER, true); SetActive(footerRoot, UI.S_AVAILABLE, false); SetActive(footerRoot, UI.NUMBER_COUNTER_IMG, true); FindCtrl(footerRoot, UI.NUMBER_COUNTER_IMG).GetComponent <UISprite>().spriteName = MonoBehaviourSingleton <GachaManager> .I.gachaResult.counter.ToString(); FindCtrl(FindCtrl(footerRoot, UI.GACHATICKETCOUNTERSRESULT), UI.COUNTER_PROGRESSBAR_FOREGROUND).GetComponent <UISprite>().fillAmount = (float)(10 - MonoBehaviourSingleton <GachaManager> .I.gachaResult.counter) / 10f; SetLabelText(footerRoot, UI.COUNTER_LBL, MonoBehaviourSingleton <GachaManager> .I.gachaResult.counter); } else { SetActive(footerRoot, UI.GACHATICKETCOUNTERSRESULT, true); SetActive(footerRoot, UI.S_COUNTER, false); SetActive(footerRoot, UI.S_AVAILABLE, true); } } SetActive(footerRoot, UI.SPR_CRYSTAL, MonoBehaviourSingleton <GachaManager> .I.selectGacha.requiredItemId == 0); SetActive(footerRoot, UI.TEX_TICKET_HAVE, MonoBehaviourSingleton <GachaManager> .I.selectGacha.requiredItemId > 0); SetLabelText(footerRoot, UI.LBL_CRYSTAL_NUM, num2.ToString()); if (MonoBehaviourSingleton <GachaManager> .I.gachaResult.gachaGuaranteeCampaignInfo == null) { SetGachaButtonActive(!MonoBehaviourSingleton <GachaManager> .I.IsSelectTutorialGacha() && MonoBehaviourSingleton <GachaManager> .I.gachaResult.remainCount != 0); } else { SetGachaButtonActive(!MonoBehaviourSingleton <GachaManager> .I.IsSelectTutorialGacha()); } }
private void InitListItem(TaskData data, Transform root) { //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_01c2: Unknown result type (might be due to invalid IL or missing references) //IL_01c7: Expected O, but got Unknown //IL_01e1: Unknown result type (might be due to invalid IL or missing references) //IL_01e6: Expected O, but got Unknown //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_01fe: Expected O, but got Unknown //IL_020d: Unknown result type (might be due to invalid IL or missing references) //IL_0212: Expected O, but got Unknown SetActive(root, UI.OBJ_CLEARED_ITEM, data.info.status == 2 || data.info.status == 3); SetActive(root, UI.OBJ_NOT_CLEARED_ITEM, data.info.status == 1); Transform val = FindCtrl(root, UI.SPR_GAUGE); if (val != null) { val.set_localScale(new Vector3(Mathf.Clamp((float)data.info.progress / (float)data.tableData.goalNum, 0f, 1f), 1f, 1f)); } SetLabelText(root, UI.LBL_GAUGE, data.info.progress.ToString() + "/" + data.tableData.goalNum.ToString()); SetLabelText(root, UI.LBL_CONDITION, data.tableData.title); SetLabelText(root, UI.LBL_REWARD_NAME, data.tableData.detail); if (data.tableData.rewardNum <= 1) { SetActive(root, UI.LBL_ITEM, false); } else { SetActive(root, UI.LBL_ITEM, true); SetLabelText(root, UI.LBL_ITEM, "x" + data.tableData.rewardNum.ToString()); } ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon(data.tableData.rewardType, (uint)data.tableData.itemId, FindCtrl(root, UI.OBJ_ICON_ROOT), -1, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); SetMaterialInfo(itemIcon._transform, data.tableData.rewardType, (uint)data.tableData.itemId, scrollView.get_transform()); UIButton component = root.GetComponent <UIButton>(); if (component != null) { component.tweenTarget = itemIcon.get_gameObject(); } GameObject val2 = FindCtrl(root, UI.SPR_NOT_RECIEVED).get_gameObject(); GameObject val3 = FindCtrl(root, UI.SPR_RECIEVED).get_gameObject(); if (data.info.status == 2) { SetButtonEnabled(root, true); SetEvent(root, "RECEIVE_REWARD", data); val2.SetActive(true); val3.SetActive(false); } else if (data.info.status == 3) { SetButtonEnabled(root, false); val2.SetActive(false); val3.SetActive(true); } else { SetButtonEnabled(root, false); } }
public virtual void Setup(Transform t, DeliveryTable.DeliveryData info) { //IL_01bd: Unknown result type (might be due to invalid IL or missing references) //IL_040b: Unknown result type (might be due to invalid IL or missing references) SetIcon(t, info); SetDeliveryName(t, info); bool is_visible = MonoBehaviourSingleton <DeliveryManager> .I.IsCompletableDelivery((int)info.id); SetActive(t, UI.OBJ_REQUEST_OK, is_visible); SetActive(t, UI.OBJ_REQUEST_COMPLETED, false); MonoBehaviourSingleton <DeliveryManager> .I.GetDeliveryDataAllNeeds((int)info.id, out int have, out int need, out string item_name, out string limit_time); SetLabelText(t, UI.LBL_HAVE, have.ToString()); SetLabelText(t, UI.LBL_NEED, need.ToString()); SetLabelText(t, UI.LBL_NEED_ITEM_NAME, item_name); SetLabelText(t, UI.LBL_LIMIT, limit_time); SetFrame(t, info); if (info.GetUIType() == DeliveryTable.UIType.STORY) { SetActive(t, UI.SPR_TYPE_TEXT_STORY, info.GetRegionDifficultyType() == REGION_DIFFICULTY_TYPE.NORMAL); SetActive(t, UI.SPR_TYPE_TEXT_STORY_HARD, info.GetRegionDifficultyType() == REGION_DIFFICULTY_TYPE.HARD); } if (info.GetUIType() == DeliveryTable.UIType.NONE) { SetActive(t, UI.SPR_TYPE_TEXT_SUB_HARD, info.GetRegionDifficultyType() == REGION_DIFFICULTY_TYPE.HARD); } DeliveryTable.UIType uIType = info.GetUITextType(); if (uIType == DeliveryTable.UIType.NONE) { uIType = info.GetUIType(); } SetActive(t, UI.SPR_TYPE_EVENT_TEXT, uIType == DeliveryTable.UIType.EVENT); SetActive(t, UI.SPR_TYPE_DAILY_TEXT, uIType == DeliveryTable.UIType.DAILY); SetActive(t, UI.SPR_TYPE_WEEKLY_TEXT, uIType == DeliveryTable.UIType.WEEKLY); SetActive(t, UI.SPR_DROP_DIFFICULTY_RARE, info.GetDeliveryDropRarity() == DELIVERY_DROP_DIFFICULTY.RARE); SetActive(t, UI.SPR_DROP_DIFFICULTY_SUPER_RARE, info.GetDeliveryDropRarity() == DELIVERY_DROP_DIFFICULTY.SUPER_RARE); DeliveryDropRareTextColor componentInChildren = t.GetComponentInChildren <DeliveryDropRareTextColor>(); if (componentInChildren != null) { UILabel component = base.GetComponent <UILabel>(t, (Enum)UI.LBL_NEED_ITEM_NAME); if (component != null) { SetColor(t, UI.LBL_NEED_ITEM_NAME, componentInChildren.GetRarityColor(info.GetDeliveryDropRarity())); } } SetSprite(t, UI.SPR_FRAME, SPR_FRAME_TYPE[info.DeliveryTypeIndex()]); int num = 0; List <DeliveryRewardTable.DeliveryRewardData.Reward> list = new List <DeliveryRewardTable.DeliveryRewardData.Reward>(); DeliveryRewardTable.DeliveryRewardData[] deliveryRewardTableData = Singleton <DeliveryRewardTable> .I.GetDeliveryRewardTableData(info.id); if (deliveryRewardTableData != null) { DeliveryRewardTable.DeliveryRewardData[] array = deliveryRewardTableData; foreach (DeliveryRewardTable.DeliveryRewardData deliveryRewardData in array) { list.Add(deliveryRewardData.reward); } } List <PointShopGetPointTable.Data> fromDeiliveryId = Singleton <PointShopGetPointTable> .I.GetFromDeiliveryId(info.id); if (fromDeiliveryId.Any()) { foreach (PointShopGetPointTable.Data item in fromDeiliveryId) { DeliveryRewardTable.DeliveryRewardData.Reward reward = new DeliveryRewardTable.DeliveryRewardData.Reward(); reward.item_id = item.pointShopId; reward.num = item.basePoint; reward.type = REWARD_TYPE.POINT_SHOP_POINT; list.Add(reward); } } if (list.Any()) { if (list.Count >= 2) { list = (from x in list orderby GetRewardPriority(x) select x).ToList(); } UI[] array2 = new UI[2] { UI.OBJ_ICON_ROOT_1, UI.OBJ_ICON_ROOT_2 }; for (int j = 0; j < 2; j++) { bool flag = list.Count >= j + 1; SetActive(t, array2[j], flag); if (flag) { DeliveryRewardTable.DeliveryRewardData.Reward reward2 = list[j]; ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon(reward2.type, reward2.item_id, FindCtrl(t, array2[j]), -1, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.REWARD_DELIVERY_LIST); if (itemIcon != null) { itemIcon.SetEnableCollider(false); } } } } QuestTable.QuestTableData questData = info.GetQuestData(); if (questData != null) { bool flag2 = questData.level > (int)MonoBehaviourSingleton <UserInfoManager> .I.userStatus.level; UIWidget[] componentsInChildren = FindCtrl(t, UI.SPR_FRAME).GetComponentsInChildren <UIWidget>(); UIWidget[] array3 = componentsInChildren; foreach (UIWidget uIWidget in array3) { if (flag2 && !uIWidget.get_name().Contains("Mask")) { uIWidget.color = Color.get_gray(); } } SetActive(t, UI.OBJ_LEVEL_LIMIT, flag2); SetLabelText(t, UI.LBL_LEVEL_LIMIT, string.Format(StringTable.Get(STRING_CATEGORY.QUEST_DELIVERY, 3u), questData.level)); SetButtonEnabled(t, !flag2); } else { SetActive(t, UI.OBJ_LEVEL_LIMIT, false); } UIGrid component2 = base.GetComponent <UIGrid>(t, (Enum)UI.GRD_ICON_ROOT); if (component2 != null) { component2.Reposition(); } }
protected override void UpdateTable() { //IL_0296: Unknown result type (might be due to invalid IL or missing references) //IL_029b: Expected O, but got Unknown //IL_02a7: Unknown result type (might be due to invalid IL or missing references) SetLabelText((Enum)UI.LBL_CURRENT_POINT, StringTable.Format(STRING_CATEGORY.EXPLORE, 0u, currentData.point)); SetLabelText((Enum)UI.LBL_POINT_TITLE, StringTable.Get(STRING_CATEGORY.EXPLORE, 1u)); if (currentData.reward != null && currentData.reward.reward.Count > 0) { SetActive((Enum)UI.OBJ_NEXT_REWARD_ROOT, true); QuestExplorePointModel.Param.Reward reward = currentData.reward.reward[0]; ItemIcon itemIcon = ItemIcon.CreateRewardItemIcon((REWARD_TYPE)reward.type, (uint)reward.itemId, GetCtrl(UI.OBJ_NEXT_REWARD_ICON_POS), reward.num, null, 0, false, -1, false, null, false, false, ItemIcon.QUEST_ICON_SIZE_TYPE.DEFAULT); string rewardName = Utility.GetRewardName((REWARD_TYPE)reward.type, (uint)reward.itemId); rewardName = Utility.TrimText(rewardName, GetCtrl(UI.LBL_NEXT_REWARD_NAME).GetComponent <UILabel>()); SetLabelText((Enum)UI.LBL_NEXT_POINT, StringTable.Format(STRING_CATEGORY.EXPLORE, 0u, currentData.reward.point)); SetLabelText((Enum)UI.LBL_NEXT_REWARD_NAME, rewardName); } else { SetActive((Enum)UI.OBJ_NEXT_REWARD_ROOT, false); } int num = 0; int count = stories.Count; if (count > 0) { num++; } int num2 = deliveryInfo.Length + clearedDeliveries.Count; if (showStory) { num2 += num + stories.Count; } if (deliveryInfo == null || num2 == 0) { SetActive((Enum)UI.STR_DELIVERY_NON_LIST, true); SetActive((Enum)UI.GRD_DELIVERY_QUEST, false); SetActive((Enum)UI.TBL_DELIVERY_QUEST, false); } else { SetActive((Enum)UI.STR_DELIVERY_NON_LIST, false); SetActive((Enum)UI.GRD_DELIVERY_QUEST, false); SetActive((Enum)UI.TBL_DELIVERY_QUEST, true); int questStartIndex = 0; int completedStartIndex = deliveryInfo.Length + questStartIndex; int borderIndex = completedStartIndex + clearedDeliveries.Count; int storyStartIndex = borderIndex; if (stories.Count > 0) { storyStartIndex++; } Transform ctrl = GetCtrl(UI.TBL_DELIVERY_QUEST); if (Object.op_Implicit(ctrl)) { int j = 0; for (int childCount = ctrl.get_childCount(); j < childCount; j++) { Transform val = ctrl.GetChild(0); val.set_parent(null); Object.Destroy(val.get_gameObject()); } } SetTable(UI.TBL_DELIVERY_QUEST, string.Empty, num2, false, delegate(int i, Transform parent) { Transform val2 = null; if (i < storyStartIndex) { if (i < borderIndex) { if (i < questStartIndex) { return(Realizes("QuestEventBorderItem", parent, true)); } return(Realizes("QuestRequestItemExplore", parent, true)); } return(Realizes("QuestEventBorderItem", parent, true)); } return(Realizes("QuestEventStoryItem", parent, true)); }, delegate(int i, Transform t, bool is_recycle) { SetActive(t, true); if (i >= storyStartIndex) { int index = i - storyStartIndex; InitStory(index, t); } else if (i < borderIndex) { if (i >= completedStartIndex) { int completedIndex = i - completedStartIndex; InitCompletedDelivery(completedIndex, t); } else if (i >= questStartIndex) { InitNormalDelivery(i - questStartIndex, t); } } if (i < storyStartIndex) { SetSprite(t, UI.SPR_FRAME, "RequestPlate_Explore"); } }); UIScrollView component = base.GetComponent <UIScrollView>((Enum)UI.SCR_DELIVERY_QUEST); component.set_enabled(true); RepositionTable(); } }