public override void UpdateUI()
    {
        //IL_017c: Unknown result type (might be due to invalid IL or missing references)
        Desc desc = GameSection.GetEventData() as Desc;

        if (desc != null)
        {
            QuestTable.QuestTableData questData = desc.questData;
            if (questData != null)
            {
                EnemyTable.EnemyData enemyData = Singleton <EnemyTable> .I.GetEnemyData((uint)questData.GetMainEnemyID());

                if (enemyData != null)
                {
                    int mainEnemyLv = questData.GetMainEnemyLv();
                    SetLabelText((Enum)UI.LBL_NAME, enemyData.name);
                    SetLabelText((Enum)UI.NUM_LV, mainEnemyLv.ToString());
                    SetElementSprite((Enum)UI.STR_ELEM, (int)enemyData.weakElement);
                    if (enemyData.weakElement != ELEMENT_TYPE.MAX)
                    {
                        SetActive((Enum)UI.STR_WEAK_NONE, false);
                    }
                    int num  = (int)(questData.limitTime / 60f);
                    int num2 = (int)(questData.limitTime % 60f);
                    SetLabelText((Enum)UI.NUM_TIMER, $"{num:D2}:{num2:D2}");
                    UI[] array = new UI[10]
                    {
                        UI.OBJ_DIFFICULT_STAR_1,
                        UI.OBJ_DIFFICULT_STAR_2,
                        UI.OBJ_DIFFICULT_STAR_3,
                        UI.OBJ_DIFFICULT_STAR_4,
                        UI.OBJ_DIFFICULT_STAR_5,
                        UI.OBJ_DIFFICULT_STAR_6,
                        UI.OBJ_DIFFICULT_STAR_7,
                        UI.OBJ_DIFFICULT_STAR_8,
                        UI.OBJ_DIFFICULT_STAR_9,
                        UI.OBJ_DIFFICULT_STAR_10
                    };
                    int num3 = (int)(questData.difficulty + 1);
                    int i    = 0;
                    for (int num4 = array.Length; i < num4; i++)
                    {
                        SetActive((Enum)array[i], i < num3);
                    }
                    PlayTween((Enum)UI.TWN_DIFFICULT_STAR, true, (EventDelegate.Callback)null, false, 0);
                    QuestInfoData.Mission[] array2 = QuestInfoData.CreateMissionData(questData);
                    if (array2 != null)
                    {
                        GetCtrl(UI.MISSION).get_gameObject().SetActive(true);
                        UI[] array3 = new UI[3]
                        {
                            UI.MISSION_LABEL_01,
                            UI.MISSION_LABEL_02,
                            UI.MISSION_LABEL_03
                        };
                        UI[] array4 = new UI[3]
                        {
                            UI.MISSION_CROWN_ON_01,
                            UI.MISSION_CROWN_ON_02,
                            UI.MISSION_CROWN_ON_03
                        };
                        UI[] array5 = new UI[3]
                        {
                            UI.MISSION_CROWN_OFF_01,
                            UI.MISSION_CROWN_OFF_02,
                            UI.MISSION_CROWN_OFF_03
                        };
                        int num5 = Mathf.Min(array2.Length, 3);
                        for (int j = 0; j < num5; j++)
                        {
                            QuestInfoData.Mission mission = array2[j];
                            SetActive((Enum)array4[j], CLEAR_STATUS.CLEAR == mission.state);
                            SetActive((Enum)array5[j], CLEAR_STATUS.CLEAR != mission.state);
                            SetLabelText((Enum)array3[j], mission.tableData.missionText);
                        }
                    }
                    if (desc.reward != null)
                    {
                        Array.Sort(desc.reward, (QuestInfoData.Quest.Reward l, QuestInfoData.Quest.Reward r) => l.priority - r.priority);
                    }
                    SetFontStyle((Enum)UI.LBL_NAME, 2);
                    SetFontStyle((Enum)UI.NUM_LV, 2);
                    SetFontStyle((Enum)UI.LBL_LV, 2);
                    countAnimStep = 0;
                    timeLimit     = MonoBehaviourSingleton <InGameSettingsManager> .I.happenQuestDirection.confirmUITime;
                    prevTime      = -1;
                    isAnswer      = false;
                    Update();
                    UpdateAnchors();
                    PlayTween((Enum)UI.OBJ_FRAME, true, (EventDelegate.Callback)null, true, 0);
                    PlayTween((Enum)UI.COUNT_ANIM_0, true, (EventDelegate.Callback)null, false, 0);
                }
            }
        }
    }
    public void Initialize()
    {
        //IL_01f3: Unknown result type (might be due to invalid IL or missing references)
        QuestTable.QuestTableData questData = Singleton <QuestTable> .I.GetQuestData(MonoBehaviourSingleton <QuestManager> .I.currentQuestID);

        if (MonoBehaviourSingleton <QuestManager> .I.IsExplore())
        {
            partyMenuUI.SetActive(true);
            normalMenuUI.SetActive(false);
            happenMenuUI.SetActive(false);
            retryableMenuUI.SetActive(false);
            string text = MonoBehaviourSingleton <PartyManager> .I.GetPartyNumber();

            if (string.IsNullOrEmpty(text))
            {
                partyNumber.text = "-";
            }
            else
            {
                partyNumber.text = text;
            }
        }
        else if (questData != null && questData.questType == QUEST_TYPE.HAPPEN)
        {
            partyMenuUI.SetActive(false);
            normalMenuUI.SetActive(false);
            happenMenuUI.SetActive(true);
            retryableMenuUI.SetActive(false);
            QuestInfoData.Mission[] array = null;
            array = QuestInfoData.CreateMissionData(questData);
            if (array != null)
            {
                int i = 0;
                for (int num = array.Length; i < num; i++)
                {
                    QuestInfoData.Mission mission = array[i];
                    m_missionCrownOn[i].SetActive(CLEAR_STATUS.CLEAR == mission.state);
                    m_missionCrownOff[i].SetActive(CLEAR_STATUS.CLEAR != mission.state);
                    m_missionTexts[i].text = mission.tableData.missionText;
                }
            }
        }
        else if (questData != null && questData.questType == QUEST_TYPE.ARENA)
        {
            partyMenuUI.SetActive(false);
            normalMenuUI.SetActive(false);
            happenMenuUI.SetActive(false);
            retryableMenuUI.SetActive(true);
        }
        else
        {
            partyMenuUI.SetActive(false);
            normalMenuUI.SetActive(true);
            happenMenuUI.SetActive(false);
            retryableMenuUI.SetActive(false);
        }
        if (MonoBehaviourSingleton <UIManager> .IsValid() && MonoBehaviourSingleton <UIManager> .I.mainChat != null)
        {
            MonoBehaviourSingleton <UIManager> .I.mainChat.HideAll();
        }
        this.get_gameObject().SetActive(true);
    }