protected override void SetClearStatus(CLEAR_STATUS clear_status) { if (!isGachaResult) { base.SetClearStatus(clear_status); } }
public bool IsClearDelivery(uint deliveryId) { CLEAR_STATUS clearStatusDelivery = GetClearStatusDelivery(deliveryId); CLEAR_STATUS cLEAR_STATUS = clearStatusDelivery; if (cLEAR_STATUS == CLEAR_STATUS.CLEAR || cLEAR_STATUS == CLEAR_STATUS.ALL_CLEAR) { return(true); } return(false); }
public CLEAR_STATUS GetClearStatusDelivery(uint deliveryId) { CLEAR_STATUS result = CLEAR_STATUS.NEW; ClearStatusDelivery clearStatusDelivery = this.clearStatusDelivery.Find((ClearStatusDelivery data) => data.deliveryId == deliveryId); if (clearStatusDelivery != null) { result = (CLEAR_STATUS)clearStatusDelivery.deliveryStatus; } return(result); }
private void MissionInit(int[] mission_clear_status) { missionData = new Mission[3]; isExistMission = false; for (int i = 0; i < 3; i++) { if (questData.tableData.missionID[i] == 0) { missionData[i] = null; } else { CLEAR_STATUS state = (CLEAR_STATUS)((mission_clear_status == null) ? 1 : mission_clear_status[i]); missionData[i] = new Mission(Singleton <QuestTable> .I.GetMissionData(questData.tableData.missionID[i]), state); isExistMission = true; } } }
protected virtual void SetClearStatus(CLEAR_STATUS clear_status) { int value = 11; SetToggleGroup((Enum)UI.OBJ_ICON_NEW, value); SetToggleGroup((Enum)UI.OBJ_ICON_CLEARED, value); SetToggleGroup((Enum)UI.OBJ_ICON_COMPLETE, value); if (clear_status != CLEAR_STATUS.NEW) { SetToggle((Enum)UI.OBJ_ICON_NEW, false); SetToggle((Enum)UI.OBJ_ICON_CLEARED, false); SetToggle((Enum)UI.OBJ_ICON_COMPLETE, false); } else { SetToggle((Enum)UI.OBJ_ICON_NEW, true); SetVisibleWidgetEffect(UI.SPR_ICON_NEW, "ef_ui_questselect_new"); } }
/// <summary> /// 電卓のクリア処理 /// </summary> /// <param name="btnStatus">クリアするステータス:btnStatus</param> private void ClearApply(CLEAR_STATUS btnStatus) { switch (btnStatus) { // 電卓アプリが最初にONになったときの初期化 case CLEAR_STATUS.CALC_INIT: isDot = false; operatorStorage = '\0'; beforInput = '\0'; beforOperator = '\0'; total = 0; calcBuff = 0; memory = 0; display = Common.CALC_FORMAT; isSeparat = false; break; // Clear用初期化 case CLEAR_STATUS.CLEAR: isDot = false; operatorStorage = '\0'; beforInput = '\0'; beforOperator = '\0'; total = 0; calcBuff = 0; display = Common.CALC_FORMAT; break; // ClearEntry用初期化 case CLEAR_STATUS.CLEAR_ENTRY: display = Common.CALC_FORMAT; break; // ClearMemory用初期化 case CLEAR_STATUS.CLEAR_MEMORY: memory = 0; memoryLabel.Text = String.Empty; break; } resultTxt.Text = display; }
private void SetUpSubMissions(Transform t, QuestTable.QuestTableData quest) { UI[] array = new UI[3] { UI.OBJ_MISSION_INFO_1, UI.OBJ_MISSION_INFO_2, UI.OBJ_MISSION_INFO_3 }; if (!quest.IsMissionExist()) { SetActive(t, UI.OBJ_SUBMISSION_ROOT, false); } else { SetActive(t, UI.OBJ_SUBMISSION_ROOT, true); ClearStatusQuest clearStatusQuestData = MonoBehaviourSingleton <QuestManager> .I.GetClearStatusQuestData(quest.questID); if (clearStatusQuestData == null) { int i = 0; for (int num = quest.missionID.Length; i < num; i++) { uint num2 = quest.missionID[i]; SetActive(t, array[i], num2 != 0); SetSubMissionNotCleared(FindCtrl(t, array[i]), num2); } } else { int j = 0; for (int count = clearStatusQuestData.missionStatus.Count; j < count; j++) { uint num3 = quest.missionID[j]; SetActive(t, array[j], num3 != 0); CLEAR_STATUS clearStatus = (CLEAR_STATUS)clearStatusQuestData.missionStatus[j]; SetSubMissionCleared(FindCtrl(t, array[j]), num3, clearStatus); } } } }
private void UpdateGirdListItemQuest(int i, Transform t, bool is_recycle) { //IL_0427: Unknown result type (might be due to invalid IL or missing references) //IL_044c: Unknown result type (might be due to invalid IL or missing references) List <GameSectionHistory.HistoryData> historyList = MonoBehaviourSingleton <GameSceneManager> .I.GetHistoryList(); bool flag = historyList.Any((GameSectionHistory.HistoryData h) => h.sectionName.StartsWith("GuildRequest")); SetActive(t, true); SetEvent(t, "SELECT_ORDER", i); QuestSortData questSortData = questGridDatas[i].questSortData; UIScrollView component = GetCtrl(UI.SCR_ORDER_QUEST).GetComponent <UIScrollView>(); QuestInfoData info = questSortData.itemData.infoData; if (flag) { SetActive(t, UI.TWN_DIFFICULT_STAR, false); SetActive(t, UI.TXT_NEED_POINT, true); string text = string.Format(StringTable.Get(STRING_CATEGORY.GUILD_REQUEST, 6u), MonoBehaviourSingleton <GuildRequestManager> .I.GetNeedPoint(info.questData.tableData.rarity), MonoBehaviourSingleton <GuildRequestManager> .I.GetNeedTimeWithFormat(info.questData.tableData.rarity)); SetLabelText(t, UI.TXT_NEED_POINT, text); } else { SetActive(t, UI.TWN_DIFFICULT_STAR, false); SetActive(t, UI.TXT_NEED_POINT, false); } EnemyTable.EnemyData enemyData = Singleton <EnemyTable> .I.GetEnemyData((uint)info.questData.tableData.GetMainEnemyID()); QuestSortData questSortData2 = questSortData; ItemIcon icon = ItemIcon.Create(questSortData2.GetIconType(), questSortData2.GetIconID(), questSortData2.GetRarity(), FindCtrl(t, UI.OBJ_ENEMY), questSortData2.GetIconElement(), null, -1, null, 0, false, -1, false, null, false, 0, 0, false, GET_TYPE.PAY); icon.SetEnableCollider(false); SetActive(t, UI.SPR_ELEMENT_ROOT, enemyData.element != ELEMENT_TYPE.MAX); SetElementSprite(t, UI.SPR_ELEMENT, (int)enemyData.element); SetElementSprite(t, UI.SPR_WEAK_ELEMENT, (int)enemyData.weakElement); SetActive(t, UI.STR_NON_WEAK_ELEMENT, enemyData.weakElement == ELEMENT_TYPE.MAX); SetLabelText(t, UI.LBL_QUEST_NAME, info.questData.tableData.questText); int num = 1; ClearStatusQuestEnemySpecies clearStatusQuestEnemySpecies = MonoBehaviourSingleton <QuestManager> .I.GetClearStatusQuestEnemySpecies(info.questData.tableData.questID); if (clearStatusQuestEnemySpecies != null) { num = clearStatusQuestEnemySpecies.questStatus; } int value = i + 100; SetToggleGroup(t, UI.OBJ_ICON_NEW, value); SetToggleGroup(t, UI.OBJ_ICON_CLEARED, value); SetToggleGroup(t, UI.OBJ_ICON_COMPLETE, value); CLEAR_STATUS cLEAR_STATUS = (CLEAR_STATUS)num; if (cLEAR_STATUS != CLEAR_STATUS.NEW) { SetToggle(t, UI.OBJ_ICON_NEW, false); SetToggle(t, UI.OBJ_ICON_CLEARED, false); SetToggle(t, UI.OBJ_ICON_COMPLETE, false); SetActive(t, UI.OBJ_ICON_ROOT, false); SetVisibleWidgetEffect(UI.SCR_ORDER_QUEST, t, UI.SPR_ICON_NEW, null); SetVisibleWidgetEffect(UI.SCR_ORDER_QUEST, t, UI.SPR_ICON_COMPLETE, null); } else { SetActive(t, UI.OBJ_ICON_ROOT, true); SetToggle(t, UI.OBJ_ICON_NEW, true); SetVisibleWidgetEffect(UI.SCR_ORDER_QUEST, t, UI.SPR_ICON_COMPLETE, null); SetVisibleWidgetEffect(UI.SCR_ORDER_QUEST, t, UI.SPR_ICON_NEW, "ef_ui_questselect_new"); } int num2 = info.questData.num; int num3 = 0; if (MonoBehaviourSingleton <UserInfoManager> .I.isGuildRequestOpen) { num3 = (from g in MonoBehaviourSingleton <GuildRequestManager> .I.guildRequestData.guildRequestItemList where g.questId == (int)info.questData.tableData.questID select g).Count(); } int num4 = num2 - num3; SetLabelText(t, UI.LBL_ORDER_NUM, num4.ToString()); if (num4 <= 0) { t.GetComponent <UIButton>().isEnabled = false; } Transform val = FindCtrl(t, UI.OBJ_FRAME); if (val != null) { UIPanel uiPanel = val.get_gameObject().GetComponent <UIPanel>(); if (uiPanel == null) { uiPanel = val.get_gameObject().AddComponent <UIPanel>(); uiPanel.depth = component.panel.depth + 1; } uiPanel.widgetsAreStatic = false; if (isScrollViewReady) { PanelToStatic(icon, uiPanel); } else { onScrollViewReady = (Action)Delegate.Combine(onScrollViewReady, (Action) delegate { PanelToStatic(icon, uiPanel); }); } } QuestItemInfo itemData = questSortData.itemData; bool is_visible = false; foreach (float remainTime in itemData.remainTimes) { float num5 = remainTime; if (num5 < SHOW_QUEST_REMAIN_LIMIT_SECOND) { is_visible = true; break; } } SetLabelText(t, UI.LBL_REMAIN, StringTable.Get(STRING_CATEGORY.GATE_QUEST_NAME, 1u)); SetActive(t, UI.LBL_REMAIN, is_visible); }
public Mission(QuestTable.MissionTableData _table, CLEAR_STATUS _state = CLEAR_STATUS.LOCK) { tableData = _table; state = _state; }
private void SetSubMissionCleared(Transform parent, uint missionID, CLEAR_STATUS clearStatus) { SetSubMission(parent, missionID, clearStatus >= CLEAR_STATUS.CLEAR); }
private IEnumerator DoInitialize() { Utility.CreateGameObjectAndComponent("TheaterModeTable", this.get_gameObject().get_transform(), -1); Utility.CreateGameObjectAndComponent("TheaterModeChapterTable", this.get_gameObject().get_transform(), -1); while (MonoBehaviourSingleton <TheaterModeChapterTable> .I.isLoading || MonoBehaviourSingleton <TheaterModeTable> .I.isLoading) { yield return((object)null); } Dictionary <int, int> checkList = new Dictionary <int, int>(); Dictionary <int, uint> idList = new Dictionary <int, uint>(); Dictionary <uint, int> revIdList = new Dictionary <uint, int>(); new Dictionary <uint, int>(); Dictionary <uint, int> deliveryList = new Dictionary <uint, int>(); MonoBehaviourSingleton <TheaterModeTable> .I.AllTheaterData(delegate(TheaterModeTable.TheaterModeData data) { if (!((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_00d8: stateMachine*/)._003CcheckList_003E__0.ContainsKey(data.script_id) && !((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_00d8: stateMachine*/)._003CidList_003E__1.ContainsKey(data.script_id)) { ((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_00d8: stateMachine*/)._003CcheckList_003E__0.Add(data.script_id, 0); ((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_00d8: stateMachine*/)._003CidList_003E__1.Add(data.script_id, data.story_id); ((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_00d8: stateMachine*/)._003CrevIdList_003E__2.Add(data.story_id, data.script_id); } }); if (checkList.ContainsKey(11000001)) { checkList[11000001] = 1; } if (checkList.ContainsKey(11000002)) { checkList[11000002] = 1; } if (Singleton <QuestTable> .IsValid() && MonoBehaviourSingleton <QuestManager> .IsValid()) { Singleton <QuestTable> .I.AllQuestData(delegate(QuestTable.QuestTableData data) { if (data.storyId != 0 && ((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_014e: stateMachine*/)._003CcheckList_003E__0.ContainsKey(data.storyId)) { if (((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_014e: stateMachine*/)._003CcheckList_003E__0[data.storyId] == 0) { ((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_014e: stateMachine*/)._003CcheckList_003E__0[data.storyId] = -1; } ((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_014e: stateMachine*/)._003CquestList_003E__3.Add(data.questID, data.storyId); ClearStatusQuest clearStatusQuestData = MonoBehaviourSingleton <QuestManager> .I.GetClearStatusQuestData(data.questID); if (clearStatusQuestData != null && (clearStatusQuestData.questStatus == 3 || clearStatusQuestData.questStatus == 4)) { ((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_014e: stateMachine*/)._003CcheckList_003E__0[data.storyId] = 1; } } }); } Singleton <DeliveryTable> .I.AllDeliveryData(delegate(DeliveryTable.DeliveryData data) { if (data.clearEventID != 0) { int clearEventID = (int)data.clearEventID; if (((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_0164: stateMachine*/)._003CcheckList_003E__0.ContainsKey(clearEventID)) { if (((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_0164: stateMachine*/)._003CcheckList_003E__0[clearEventID] == 0) { ((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_0164: stateMachine*/)._003CcheckList_003E__0[clearEventID] = -1; } ((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_0164: stateMachine*/)._003CdeliveryList_003E__4.Add(data.id, clearEventID); CLEAR_STATUS clearStatusDelivery = MonoBehaviourSingleton <DeliveryManager> .I.GetClearStatusDelivery(data.id); if (clearStatusDelivery == CLEAR_STATUS.CLEAR || clearStatusDelivery == CLEAR_STATUS.ALL_CLEAR) { ((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_0164: stateMachine*/)._003CcheckList_003E__0[clearEventID] = 1; } } } }); if (s_connectCache == null) { TheaterModeModel.RequestSendForm send_form = new TheaterModeModel.RequestSendForm(); foreach (KeyValuePair <uint, int> item in deliveryList) { int storyId2 = item.Value; if (checkList[storyId2] < 1) { send_form.theaterList.Add(new TheaterModePostData((int)idList[storyId2], (int)item.Key, 0)); } } foreach (KeyValuePair <int, int> item2 in checkList) { int storyId = item2.Key; if (checkList[storyId] == 0) { send_form.theaterList.Add(new TheaterModePostData((int)idList[storyId], 0, storyId)); } } bool isEndConnection = false; Protocol.Send(TheaterModeModel.URL, send_form, delegate(TheaterModeModel ret) { if (ret.Error == Error.None) { if (ret == null || ret.result == null || ret.result.theaterList == null) { return; } s_connectCache = ret.result; } ((_003CDoInitialize_003Ec__IteratorEA) /*Error near IL_02ee: stateMachine*/)._003CisEndConnection_003E__12 = true; }, string.Empty); while (!isEndConnection) { yield return((object)null); } } for (int l = 0; l < s_connectCache.theaterList.Count; l++) { if (s_connectCache.theaterList[l].isOpen) { checkList[revIdList[(uint)s_connectCache.theaterList[l].theaterId]] = 1; } else { checkList[revIdList[(uint)s_connectCache.theaterList[l].theaterId]] = -1; } } m_canViewStoryList = MonoBehaviourSingleton <TheaterModeTable> .I.GetTableFromOKDic(checkList); List <uint> chapterList = new List <uint>(); int k = 0; for (int count2 = m_canViewStoryList.Count; k < count2; k++) { uint chapter = (uint)m_canViewStoryList[k].chapter_id; if (!chapterList.Contains(chapter)) { chapterList.Add(chapter); } } m_canViewChapterList = MonoBehaviourSingleton <TheaterModeChapterTable> .I.GetPickedData(chapterList); m_canViewChapterList.Sort(delegate(TheaterModeChapterTable.TheaterModeChapterData a, TheaterModeChapterTable.TheaterModeChapterData b) { if (a.order != 0 && b.order != 0) { return(b.order - a.order); } if (b.order != 0) { return(-1); } if (a.order != 0) { return(1); } return((int)(b.chapter_id - a.chapter_id)); }); LoadingQueue loadingQueue = new LoadingQueue(this); bannerTable = new Dictionary <int, LoadObject>(m_canViewChapterList.Count); for (int j = 0; j < m_canViewChapterList.Count; j++) { TheaterModeChapterTable.TheaterModeChapterData table = m_canViewChapterList[j]; if (!bannerTable.ContainsKey(table.banner_id)) { string bannerImg = ResourceName.GetEventBanner(table.banner_id); LoadObject obj = loadingQueue.Load(RESOURCE_CATEGORY.EVENT_ICON, bannerImg, false); bannerTable.Add(table.banner_id, obj); } } if (loadingQueue.IsLoading()) { yield return((object)loadingQueue.Wait()); } m_mainChapterList = new List <TheaterModeChapterTable.TheaterModeChapterData>(); m_eventChapterList = new List <TheaterModeChapterTable.TheaterModeChapterData>(); int i = 0; for (int count = m_canViewChapterList.Count; i < count; i++) { if (m_canViewChapterList[i].is_main == 0) { m_eventChapterList.Add(m_canViewChapterList[i]); } else { m_mainChapterList.Add(m_canViewChapterList[i]); } } SetPaging(); m_isSelectMain = false; OnQuery_SELECT_MAIN(); base.Initialize(); }
protected void UpdateSubMission() { 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 }; if (info.needs.Length != 0) { uint questId = info.needs[0].questId; if (questId != 0) { QuestTable.QuestTableData questData = Singleton <QuestTable> .I.GetQuestData(questId); if (!questData.IsMissionExist()) { SetActive((Enum)UI.OBJ_SUBMISSION_ROOT, false); } else { ClearStatusQuest clearStatusQuestData = MonoBehaviourSingleton <QuestManager> .I.GetClearStatusQuestData(questId); if (clearStatusQuestData == null) { SetActive((Enum)UI.OBJ_SUBMISSION_ROOT, true); int i = 0; for (int num = questData.missionID.Length; i < num; i++) { uint num2 = questData.missionID[i]; SetActive(submissionFrame, array[i], num2 != 0); SetActive(submissionFrame, array2[i], num2 != 0); SetActive(submissionFrame, array3[i], num2 != 0); if (num2 != 0) { SetActive(submissionFrame, array4[i], false); SetActive(submissionFrame, array5[i], false); QuestTable.MissionTableData missionData = Singleton <QuestTable> .I.GetMissionData(num2); SetLabelText(submissionFrame, array3[i], missionData.missionText); } } } else { SetActive((Enum)UI.OBJ_SUBMISSION_ROOT, true); int j = 0; for (int count = clearStatusQuestData.missionStatus.Count; j < count; j++) { CLEAR_STATUS cLEAR_STATUS = (CLEAR_STATUS)clearStatusQuestData.missionStatus[j]; SetActive(submissionFrame, array[j], questData.missionID[j] != 0); SetActive(submissionFrame, array2[j], questData.missionID[j] != 0); SetActive(submissionFrame, array4[j], cLEAR_STATUS >= CLEAR_STATUS.CLEAR); SetActive(submissionFrame, array5[j], cLEAR_STATUS >= CLEAR_STATUS.CLEAR); QuestTable.MissionTableData missionData2 = Singleton <QuestTable> .I.GetMissionData(questData.missionID[j]); SetLabelText(submissionFrame, array3[j], missionData2.missionText); } } } } } }
protected void ShowChallenge() { //IL_0071: Unknown result type (might be due to invalid IL or missing references) List <QuestData> challengeList = MonoBehaviourSingleton <QuestManager> .I.challengeList; if (MonoBehaviourSingleton <PartyManager> .I.challengeInfo.oldShadowCount != null) { SetActive((Enum)UI.STR_CHALLENGE_BONUS_MESSAGE, true); SetActive((Enum)UI.BTN_DETAIL, true); UIPanel component = GetCtrl(UI.SCR_ORDER_QUEST).GetComponent <UIPanel>(); component.baseClipRegion = new Vector4(0f, -110f, 440f, 549f); SetLabelText((Enum)UI.STR_CHALLENGE_BONUS_MESSAGE, StringTable.Format(STRING_CATEGORY.SHADOW_COUNT, 3u, MonoBehaviourSingleton <PartyManager> .I.challengeInfo.oldShadowCount.num)); base.GetComponent <UILabel>((Enum)UI.STR_CHALLENGE_BONUS_MESSAGE).supportEncoding = true; } else { SetActive((Enum)UI.STR_CHALLENGE_BONUS_MESSAGE, false); SetActive((Enum)UI.BTN_DETAIL, false); } SetLabelText((Enum)UI.STR_CHALLENGE_MESSAGE, MonoBehaviourSingleton <PartyManager> .I.challengeInfo.message); SetSupportEncoding(UI.STR_CHALLENGE_MESSAGE, true); if (challengeList == null || challengeList.Count == 0) { SetActive((Enum)UI.GRD_ORDER_QUEST, false); SetActive((Enum)UI.STR_ORDER_NON_LIST, true); SetActive((Enum)UI.OBJ_ACTIVE_ROOT, false); SetActive((Enum)UI.OBJ_INACTIVE_ROOT, true); SetLabelText((Enum)UI.LBL_MAX, "0"); SetLabelText((Enum)UI.LBL_NOW, "0"); UIScrollView component2 = GetCtrl(UI.SCR_ORDER_QUEST).GetComponent <UIScrollView>(); if (component2 != null) { component2.set_enabled(false); component2.verticalScrollBar.alpha = 0f; } } else { SetActive((Enum)UI.GRD_ORDER_QUEST, true); SetActive((Enum)UI.STR_ORDER_NON_LIST, false); pageMax = 1 + (challengeList.Count - 1) / 10; bool flag = pageMax > 1; SetActive((Enum)UI.OBJ_ACTIVE_ROOT, flag); SetActive((Enum)UI.OBJ_INACTIVE_ROOT, !flag); SetLabelText((Enum)UI.LBL_MAX, pageMax.ToString()); SetLabelText((Enum)UI.LBL_NOW, nowPage.ToString()); UITweener[] transitions = GetCtrl(UI.OBJ_FRAME).GetComponents <UITweener>(); int finishCount = 0; UITweener[] array = transitions; foreach (UITweener uITweener in array) { uITweener.AddOnFinished(delegate { finishCount++; if (finishCount >= transitions.Length) { isTransitionFinished = true; } }); } int num = 10 * (nowPage - 1); int num2 = (nowPage != pageMax) ? 10 : (challengeList.Count - num); challengeData = new QuestData[num2]; Array.Copy(challengeList.ToArray(), num, challengeData, 0, num2); bool isGuildRequest = MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSectionName() == "GuildRequestChallengeCounter"; UIScrollView scrollView = GetCtrl(UI.SCR_ORDER_QUEST).GetComponent <UIScrollView>(); SetGrid(UI.GRD_ORDER_QUEST, "QuestListChallengeItem", challengeData.Length, isResetUI, (int i, Transform t) => Realizes("QuestListChallengeItem", t, true), delegate(int i, Transform t, bool is_recycle) { //IL_02f4: Unknown result type (might be due to invalid IL or missing references) //IL_0319: Unknown result type (might be due to invalid IL or missing references) SetActive(t, true); SetEvent(t, "SELECT_ORDER", i); QuestTable.QuestTableData questData = Singleton <QuestTable> .I.GetQuestData((uint)challengeData[i].questId); if (isGuildRequest) { SetActive(t, UI.TWN_DIFFICULT_STAR, false); SetActive(t, UI.TXT_NEED_POINT, true); string text = string.Format(StringTable.Get(STRING_CATEGORY.GUILD_REQUEST, 6u), MonoBehaviourSingleton <GuildRequestManager> .I.GetNeedPoint(questData.rarity), MonoBehaviourSingleton <GuildRequestManager> .I.GetNeedTimeWithFormat(questData.rarity)); SetLabelText(t, UI.TXT_NEED_POINT, text); } else { SetActive(t, UI.TWN_DIFFICULT_STAR, false); SetActive(t, UI.TXT_NEED_POINT, false); } EnemyTable.EnemyData enemyData = Singleton <EnemyTable> .I.GetEnemyData((uint)questData.GetMainEnemyID()); ITEM_ICON_TYPE itemIconType = ItemIcon.GetItemIconType(questData.questType); ItemIcon icon = ItemIcon.Create(itemIconType, enemyData.iconId, questData.rarity, FindCtrl(t, UI.OBJ_ENEMY), enemyData.element, null, -1, null, 0, false, -1, false, null, false, 0, 0, false, GET_TYPE.PAY); icon.SetEnableCollider(false); SetActive(t, UI.SPR_ELEMENT_ROOT, enemyData.element != ELEMENT_TYPE.MAX); SetElementSprite(t, UI.SPR_ELEMENT, (int)enemyData.element); SetElementSprite(t, UI.SPR_WEAK_ELEMENT, (int)enemyData.weakElement); SetActive(t, UI.STR_NON_WEAK_ELEMENT, enemyData.weakElement == ELEMENT_TYPE.MAX); SetLabelText(t, UI.LBL_QUEST_NAME, questData.questText); int num3 = 1; ClearStatusQuestEnemySpecies clearStatusQuestEnemySpecies = MonoBehaviourSingleton <QuestManager> .I.GetClearStatusQuestEnemySpecies(questData.questID); if (clearStatusQuestEnemySpecies != null) { num3 = clearStatusQuestEnemySpecies.questStatus; } int value = i + 100; SetToggleGroup(t, UI.OBJ_ICON_NEW, value); CLEAR_STATUS cLEAR_STATUS = (CLEAR_STATUS)num3; if (cLEAR_STATUS != CLEAR_STATUS.NEW) { SetToggle(t, UI.OBJ_ICON_NEW, false); SetActive(t, UI.OBJ_ICON_ROOT, false); } else { SetActive(t, UI.OBJ_ICON_ROOT, true); SetToggle(t, UI.OBJ_ICON_NEW, true); SetVisibleWidgetEffect(UI.SCR_ORDER_QUEST, t, UI.SPR_ICON_NEW, "ef_ui_questselect_new"); } Transform val = FindCtrl(t, UI.OBJ_FRAME); if (val != null) { UIPanel uiPanel = val.get_gameObject().GetComponent <UIPanel>(); if (uiPanel == null) { uiPanel = val.get_gameObject().AddComponent <UIPanel>(); uiPanel.depth = scrollView.panel.depth + 1; } uiPanel.widgetsAreStatic = false; if (isScrollViewReady) { PanelToStatic(icon, uiPanel); } else { QuestChallengeSelect questChallengeSelect = this; questChallengeSelect.onScrollViewReady = (Action)Delegate.Combine(questChallengeSelect.onScrollViewReady, (Action) delegate { PanelToStatic(icon, uiPanel); }); } } }); } }
public FieldMapInfo(FieldMapTable.FieldMapTableData _table, int _status) { fieldMap = _table; status = (CLEAR_STATUS)_status; }