Пример #1
0
    public bool IsAddComposeList(NkSoldierInfo kSolInfo)
    {
        if (this.m_bMainSelect && kSolInfo.IsMaxLevel() && kSolInfo.IsMaxGrade())
        {
            return(false);
        }
        SolComposeMainDlg solComposeMainDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLCOMPOSE_MAIN_DLG) as SolComposeMainDlg;

        return(solComposeMainDlg == null || solComposeMainDlg.mBaseSol == null || solComposeMainDlg.mBaseSol.GetSolID() != kSolInfo.GetSolID());
    }
Пример #2
0
    public override void SetComponent()
    {
        this.bgImage = (base.GetControl("DrawTexture_BG01") as DrawTexture);
        Texture2D texture2D = CResources.Load(NrTSingleton <UIDataManager> .Instance.FilePath + "Texture/bg_solcompose") as Texture2D;

        if (null != texture2D)
        {
            this.bgImage.SetSize(GUICamera.width, GUICamera.height);
            this.bgImage.SetTexture(texture2D);
        }
        this.lbExtractItemCount = (base.GetControl("Label_Extract_Result") as Label);
        this.lbExtractItemCount.SetLocation(GUICamera.width / 2f - this.lbExtractItemCount.GetSize().x / 2f, this.lbExtractItemCount.GetLocationY(), -90f);
        this.lbExtractItemCount.Visible = false;
        this.btnOk = (base.GetControl("Button_Confirm") as Button);
        Button expr_E1 = this.btnOk;

        expr_E1.Click = (EZValueChangedDelegate)Delegate.Combine(expr_E1.Click, new EZValueChangedDelegate(this.BtnClickOk));
        this.btnOk.SetLocation(GUICamera.width / 2f - this.btnOk.GetSize().x / 2f, this.btnOk.GetLocationY(), -90f);
        this.btnOk.Hide(true);
        SolComposeMainDlg solComposeMainDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLCOMPOSE_MAIN_DLG) as SolComposeMainDlg;

        if (solComposeMainDlg == null)
        {
            solComposeMainDlg = (NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLCOMPOSE_MAIN_CHALLENGEQUEST_DLG) as SolComposeMainDlg);
        }
        if (solComposeMainDlg != null)
        {
            this.m_SolComposeMainType = solComposeMainDlg.GetSolComposeType();
            if (this.m_SolComposeMainType == SOLCOMPOSE_TYPE.EXTRACT)
            {
                this.bgImage.SetTextureKey("Win_T_WH");
                string str = string.Empty;
                str = string.Format("effect/instant/fx_direct_extraction{0}", NrTSingleton <UIDataManager> .Instance.AddFilePath);
                WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);
                wWWItem.SetItemType(ItemType.USER_ASSETB);
                wWWItem.SetCallback(new PostProcPerItem(this.SolComposeExtract), null);
                TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
            }
            else
            {
                string str2 = string.Empty;
                str2 = string.Format("UI/Soldier/fx_direct_solcompose{0}", NrTSingleton <UIDataManager> .Instance.AddFilePath);
                WWWItem wWWItem2 = Holder.TryGetOrCreateBundle(str2 + Option.extAsset, NkBundleCallBack.UIBundleStackName);
                wWWItem2.SetItemType(ItemType.USER_ASSETB);
                wWWItem2.SetCallback(new PostProcPerItem(this.SolComposeSuccess), null);
                TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem2, DownGroup.RUNTIME, true);
            }
        }
        UIDataManager.MuteSound(true);
        this.SetSize();
        base.DonotDepthChange(360f);
        this.Hide();
    }
Пример #3
0
    private void UpdateComposeData()
    {
        long num = 0L;

        foreach (long current in this.mCheckList)
        {
            NkSoldierInfo soldierInfo = SolComposeMainDlg.GetSoldierInfo(current);
            num += SolComposeMainDlg.GetComposeCost(soldierInfo);
        }
        this.lbSubNum.SetText(string.Format("{0}/{1}", this.mCheckList.Count, 50));
        this.lbCostMoney.SetText(string.Format("{0:###,###,###,##0}", num));
    }
Пример #4
0
    protected virtual void Click_HeroCompose(IUIObject Obj)
    {
        if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.SOLCOMPOSE_MAIN_DLG))
        {
            SolComposeMainDlg solComposeMainDlg = (SolComposeMainDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.SOLCOMPOSE_MAIN_DLG);

            if (!solComposeMainDlg.Visible)
            {
                solComposeMainDlg.Show();
            }
        }
        else
        {
            NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.SOLCOMPOSE_MAIN_DLG);
        }
    }
Пример #5
0
    protected virtual void BtnClickListBox(IUIObject obj)
    {
        UIListItemContainer selectedItem = this.ComposeNewListBox.SelectedItem;

        if (null == selectedItem)
        {
            return;
        }
        NkSoldierInfo nkSoldierInfo = (NkSoldierInfo)selectedItem.data;

        if (nkSoldierInfo == null)
        {
            return;
        }
        if (this.IsContainSelect(nkSoldierInfo.GetSolID()))
        {
            this.mCheckList.Remove(nkSoldierInfo.GetSolID());
        }
        else
        {
            if (!this.m_bMainSelect && nkSoldierInfo.IsAtbCommonFlag(1L))
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("724"), SYSTEM_MESSAGE_TYPE.IMPORTANT_MESSAGE);
                return;
            }
            if (this.m_eShowType == SOLCOMPOSE_TYPE.EXTRACT)
            {
                if (nkSoldierInfo.GetGrade() < 5 || nkSoldierInfo.GetGrade() >= 6)
                {
                    return;
                }
                if (this.mCheckList.Count >= 10)
                {
                    return;
                }
            }
            else if (this.m_eShowType == SOLCOMPOSE_TYPE.TRANSCENDENCE)
            {
                foreach (long current in this.mCheckList)
                {
                    NkSoldierInfo soldierInfo = SolComposeMainDlg.GetSoldierInfo(current);
                    if (soldierInfo != null)
                    {
                        this.UpdateSolListCheck(soldierInfo, false);
                    }
                }
                this.mCheckList.Clear();
            }
            else if (this.m_eShowType == SOLCOMPOSE_TYPE.MYTHEVOLUTION)
            {
                if (nkSoldierInfo.GetGrade() < 5 || nkSoldierInfo.GetGrade() >= 10)
                {
                    return;
                }
            }
            else if (this.mCheckList.Count >= 50)
            {
                return;
            }
            this.mCheckList.Add(nkSoldierInfo.GetSolID());
        }
        if (this.m_bMainSelect)
        {
            this.SelectFinish();
            return;
        }
        if (this.IsContainSelect(nkSoldierInfo.GetSolID()))
        {
            this.UpdateSolListCheck(nkSoldierInfo, true);
        }
        else
        {
            this.UpdateSolListCheck(nkSoldierInfo, false);
        }
        switch (this.m_eShowType)
        {
        case SOLCOMPOSE_TYPE.COMPOSE:
            this.UpdateComposeData();
            break;

        case SOLCOMPOSE_TYPE.SELL:
            this.UpdateSellData();
            break;

        case SOLCOMPOSE_TYPE.EXTRACT:
            this.UpdateExtractData();
            break;

        case SOLCOMPOSE_TYPE.MYTHEVOLUTION:
            this.UpdateMythEvolution();
            break;
        }
    }
Пример #6
0
    public virtual void SetData(NkSoldierInfo kBase, List <long> kSubList, SOLCOMPOSE_TYPE _Type = SOLCOMPOSE_TYPE.COMPOSE)
    {
        if (SolComposeMainDlg.Instance == null)
        {
            base.CloseNow();
            return;
        }
        string text  = string.Empty;
        string text2 = string.Empty;
        int    kind  = 0;

        this.mBaseSolInfo = kBase;
        this.mSubSolList  = kSubList;
        this.m_SolType    = _Type;
        NkSoldierInfo nkSoldierInfo = null;

        if (this.mSubSolList != null || this.mSubSolList.Count != 0)
        {
            foreach (long current in this.mSubSolList)
            {
                NkSoldierInfo soldierInfo = SolComposeMainDlg.GetSoldierInfo(current);
                if (nkSoldierInfo == null)
                {
                    nkSoldierInfo = soldierInfo;
                }
                else if (nkSoldierInfo.GetCombatPower() < soldierInfo.GetCombatPower())
                {
                    nkSoldierInfo = soldierInfo;
                }
            }
            if (nkSoldierInfo != null)
            {
                kind  = nkSoldierInfo.GetCharKind();
                text  = nkSoldierInfo.GetName();
                text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1031");

                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
                {
                    text2,
                    "count",
                    nkSoldierInfo.GetLevel()
                });
            }
            int    num   = this.mSubSolList.Count - 1;
            string text3 = string.Empty;
            text3 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2034");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text3, new object[]
            {
                text3,
                "count",
                num
            });

            this.lbName.SetText(text);
            this.lbLevel.SetText(text2);
            this.dtSoldier.SetTexture(eCharImageType.SMALL, kind, (int)nkSoldierInfo.GetGrade(), string.Empty);
            this.lbSubNum.SetText(text3);
            this.lbSubNum.Visible = (0 < num);
            this.lbGold.SetText(string.Format("{0:###,###,###,##0}", SolComposeMainDlg.Instance.COST));
            SOLCOMPOSE_TYPE solType = this.m_SolType;
            if (solType != SOLCOMPOSE_TYPE.COMPOSE)
            {
                if (solType == SOLCOMPOSE_TYPE.SELL)
                {
                    this.lbTitle.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("57"));
                    this.lbExplain.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("58"));
                    this.lbMoneyName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("34"));
                    this.btnOk.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("35"));
                }
            }
            else
            {
                this.lbTitle.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2033"));
                this.lbExplain.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1717"));
                this.lbMoneyName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1728"));
                this.btnOk.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1729"));
            }
            return;
        }
        this.Close();
    }
    public override bool Verify()
    {
        SolComposeMainDlg solComposeMainDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLCOMPOSE_MAIN_CHALLENGEQUEST_DLG) as SolComposeMainDlg;

        return(solComposeMainDlg != null && solComposeMainDlg.GetExtractSolCount() > 0);
    }
Пример #8
0
    public void GetChallengeOpenUi(string OpenUi, short unique)
    {
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        if (kMyCharInfo == null)
        {
            return;
        }
        string a = "e" + OpenUi;

        if (a == "0")
        {
            return;
        }
        if (a == eChallenge_OpenUi.ePLUNDERMAIN.ToString())
        {
            if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.PLUNDERMAIN_DLG))
            {
                GS_INFIBATTLE_RANK_GET_REQ gS_INFIBATTLE_RANK_GET_REQ = new GS_INFIBATTLE_RANK_GET_REQ();
                gS_INFIBATTLE_RANK_GET_REQ.i64PersonID = kMyCharInfo.m_PersonID;
                SendPacket.GetInstance().SendObject(2017, gS_INFIBATTLE_RANK_GET_REQ);
            }
            else
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.PLUNDERMAIN_DLG);
            }
        }
        else if (a == eChallenge_OpenUi.eBOUNTYHUNTING.ToString())
        {
            if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.BOUNTYHUNTING_DLG))
            {
                BountyHuntingDlg bountyHuntingDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.BOUNTYHUNTING_DLG) as BountyHuntingDlg;

                if (bountyHuntingDlg != null)
                {
                    bountyHuntingDlg.SetData();
                }
            }
        }
        else if (a == eChallenge_OpenUi.eBABELTOWER_MODESELECT.ToString())
        {
            int level = kMyCharInfo.GetLevel();
            int value = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BABELTOWER_LIMITLEVEL);
            if (level < value)
            {
                string empty          = string.Empty;
                string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("129");

                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                {
                    textFromNotify,
                    "level",
                    value.ToString()
                });

                Main_UI_SystemMessage.ADDMessage(empty, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return;
            }
            if (kMyCharInfo.m_kFriendInfo.GetFriendCount() > 0 && kMyCharInfo.m_kFriendInfo.GetFriendsBaBelDataCount() == 0)
            {
                GS_FRIENDS_BABELTOWER_CLEARINFO_REQ obj = new GS_FRIENDS_BABELTOWER_CLEARINFO_REQ();
                SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_FRIENDS_BABELTOWER_CLEARINFO_REQ, obj);
            }
            int value2 = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BABEL_HARD_LEVEL);
            if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.BABELTOWERMAIN_DLG))
            {
                if (level < value2)
                {
                    DirectionDLG directionDLG = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.DLG_DIRECTION) as DirectionDLG;

                    if (directionDLG != null)
                    {
                        directionDLG.ShowDirection(DirectionDLG.eDIRECTIONTYPE.eDIRECTION_BABEL, 1);
                    }
                }
                else
                {
                    NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.BABELTOWER_MODESELECT_DLG);
                }
            }
            else
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.BABELTOWERMAIN_DLG);
            }
        }
        else if (a == eChallenge_OpenUi.eMYTHRAID_MODESELECT.ToString())
        {
            if (kMyCharInfo != null)
            {
                int num = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_MYTHRAID_LIMITLEVEL);
                if (num == 0)
                {
                    num = 50;
                }
                if (kMyCharInfo.GetLevel() < num)
                {
                    string textFromNotify2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("908");

                    if (string.IsNullOrEmpty(textFromNotify2))
                    {
                        return;
                    }
                    Main_UI_SystemMessage.ADDMessage(textFromNotify2, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                    return;
                }
            }
            DirectionDLG directionDLG2 = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.DLG_DIRECTION) as DirectionDLG;

            if (directionDLG2 != null)
            {
                directionDLG2.ShowDirection(DirectionDLG.eDIRECTIONTYPE.eDIRECTION_MYTHRAID, 0);
            }
        }
        else if (a == eChallenge_OpenUi.eMINE_SEARCH.ToString())
        {
            if (0L >= NrTSingleton <NewGuildManager> .Instance.GetGuildID() || !NrTSingleton <ContentsLimitManager> .Instance.IsMineApply((short)NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetLevel()))
            {
                string textFromNotify3 = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("763");

                Main_UI_SystemMessage.ADDMessage(textFromNotify3, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return;
            }
            long charSubData = kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_MINE_TUTORIAL_STEP);
            if (charSubData == 1L)
            {
                MineTutorialStepDlg mineTutorialStepDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MINE_TUTORIAL_STEP_DLG) as MineTutorialStepDlg;

                if (mineTutorialStepDlg != null)
                {
                    mineTutorialStepDlg.SetStep(1L);
                }
            }
            else
            {
                NrTSingleton <MineManager> .Instance.Send_GS_MINE_GUILD_CURRENTSTATUS_INFO_GET_REQ(1, 1, 0L);
            }
        }
        else if (a == eChallenge_OpenUi.eCOLOSSEUMMAIN.ToString())
        {
            if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.COLOSSEUMMAIN_DLG))
            {
                NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.COLOSSEUMMAIN_DLG);
            }
            else
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.COLOSSEUMMAIN_DLG);
            }
        }
        else if (a == eChallenge_OpenUi.eBABEL_GUILDBOSS_MAIN.ToString())
        {
            if (!NrTSingleton <ContentsLimitManager> .Instance.IsGuildBoss())
            {
                return;
            }
            if (NrTSingleton <NewGuildManager> .Instance.GetGuildID() <= 0L)
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("545"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return;
            }
            BabelGuildBossDlg babelGuildBossDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.BABEL_GUILDBOSS_MAIN_DLG) as BabelGuildBossDlg;

            if (babelGuildBossDlg != null)
            {
                babelGuildBossDlg.Show();
            }
        }
        else if (a == eChallenge_OpenUi.eREFORGEMAIN.ToString())
        {
            if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.REFORGEMAIN_DLG))
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.REFORGERESULT_DLG);

                ReforgeMainDlg reforgeMainDlg = (ReforgeMainDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.REFORGEMAIN_DLG);

                reforgeMainDlg.Show();
            }
        }
        else if (a == eChallenge_OpenUi.eSOLEXTRACT_DUMMY.ToString())
        {
            if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.HEROCOLLECT_CHALLENGEQUEST_DLG))
            {
                HeroCollect_DLG_challengequest heroCollect_DLG_challengequest = (HeroCollect_DLG_challengequest)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.HEROCOLLECT_CHALLENGEQUEST_DLG);

                if (heroCollect_DLG_challengequest != null)
                {
                    heroCollect_DLG_challengequest._ChallengeQuestUnique = (int)unique;
                    heroCollect_DLG_challengequest.SetDummyUI();
                    heroCollect_DLG_challengequest.Show();
                }
            }
            else
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.HEROCOLLECT_CHALLENGEQUEST_DLG);
            }
        }
        else if (a == eChallenge_OpenUi.eSOLTRANSCENDENCE_DUMMY.ToString())
        {
            if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.HEROCOLLECT_CHALLENGEQUEST_DLG))
            {
                HeroCollect_DLG_challengequest heroCollect_DLG_challengequest2 = (HeroCollect_DLG_challengequest)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.HEROCOLLECT_CHALLENGEQUEST_DLG);

                if (heroCollect_DLG_challengequest2 != null)
                {
                    heroCollect_DLG_challengequest2._ChallengeQuestUnique = (int)unique;
                    heroCollect_DLG_challengequest2.SetDummyUI();
                    heroCollect_DLG_challengequest2.Show();
                }
            }
            else
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.HEROCOLLECT_CHALLENGEQUEST_DLG);
            }
        }
        else if (a == eChallenge_OpenUi.eSOLCOMPOSE_DUMMY.ToString())
        {
            if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.HEROCOLLECT_CHALLENGEQUEST_DLG))
            {
                HeroCollect_DLG_challengequest heroCollect_DLG_challengequest3 = (HeroCollect_DLG_challengequest)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.HEROCOLLECT_CHALLENGEQUEST_DLG);

                if (heroCollect_DLG_challengequest3 != null)
                {
                    heroCollect_DLG_challengequest3._ChallengeQuestUnique = (int)unique;
                    heroCollect_DLG_challengequest3.SetDummyUI();
                    heroCollect_DLG_challengequest3.Show();
                }
            }
            else
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.HEROCOLLECT_CHALLENGEQUEST_DLG);
            }
        }
        else if (a == eChallenge_OpenUi.eSOLRECRUIT_DUMMY.ToString())
        {
            if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.SOLRECRUIT_CHALLENGEQUEST_DLG))
            {
                SolRecruitDlg_ChallengeQuest solRecruitDlg_ChallengeQuest = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.SOLRECRUIT_CHALLENGEQUEST_DLG) as SolRecruitDlg_ChallengeQuest;

                solRecruitDlg_ChallengeQuest.SetTicketList();
            }
        }
        else if (a == eChallenge_OpenUi.eSOLRECRUIT.ToString())
        {
            GS_TICKET_SELL_INFO_REQ obj2 = new GS_TICKET_SELL_INFO_REQ();
            SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_TICKET_SELL_INFO_REQ, obj2);
        }
        else if (a == eChallenge_OpenUi.eSTORYCHAT.ToString())
        {
            if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.STORYCHAT_DLG))
            {
                NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.STORYCHAT_DLG);
            }
            else
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.STORYCHAT_DLG);
            }
        }
        else if (a == eChallenge_OpenUi.eBABELTOWERMAIN.ToString())
        {
            int level2 = kMyCharInfo.GetLevel();
            int value3 = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BABELTOWER_LIMITLEVEL);
            if (level2 < value3)
            {
                string empty2          = string.Empty;
                string textFromNotify4 = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("129");

                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[]
                {
                    textFromNotify4,
                    "level",
                    value3.ToString()
                });

                Main_UI_SystemMessage.ADDMessage(empty2, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return;
            }
            BabelTowerMainDlg babelTowerMainDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.BABELTOWERMAIN_DLG) as BabelTowerMainDlg;

            if (babelTowerMainDlg != null)
            {
                babelTowerMainDlg.Show();
            }
        }
        else if (a == eChallenge_OpenUi.eREDUCEMAIN.ToString())
        {
            NrTSingleton <NkQuestManager> .Instance.NPCAutoMove(125);

            NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.CHALLENGE_DLG);
        }
        else if (a == eChallenge_OpenUi.eITEMSKILL.ToString())
        {
            NrTSingleton <NkQuestManager> .Instance.NPCAutoMove(109);
        }
        else if (a == eChallenge_OpenUi.eSOLDETAIL.ToString())
        {
            GS_SOLGUIDE_INFO_REQ gS_SOLGUIDE_INFO_REQ = new GS_SOLGUIDE_INFO_REQ();
            gS_SOLGUIDE_INFO_REQ.bElementMark = false;
            gS_SOLGUIDE_INFO_REQ.i32CharKind  = 1053;
            SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_SOLGUIDE_INFO_REQ, gS_SOLGUIDE_INFO_REQ);
            NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.CHALLENGE_DLG);
        }
        else if (a == eChallenge_OpenUi.eITEMMALL_DUMMY.ToString())
        {
            ItemMallDlg_ChallengeQuest itemMallDlg_ChallengeQuest = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.ITEMMALL_CHALLENGEQUEST_DLG) as ItemMallDlg_ChallengeQuest;

            if (itemMallDlg_ChallengeQuest != null)
            {
                itemMallDlg_ChallengeQuest._ChallengeQuestUnique = (int)unique;
                itemMallDlg_ChallengeQuest.SetShowMode(ItemMallDlg.eMODE.eMODE_VOUCHER_HERO);
                itemMallDlg_ChallengeQuest.InitDummyUI();
            }
            NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.CHALLENGE_DLG);
        }
        else if (a == eChallenge_OpenUi.eSOLEVOLUTION_DUMMY.ToString())
        {
            Myth_Evolution_Main_DLG_ChallengeQuest myth_Evolution_Main_DLG_ChallengeQuest = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MYTH_EVOLUTION_MAIN_CHALLENGEQUEST_DLG) as Myth_Evolution_Main_DLG_ChallengeQuest;

            if (myth_Evolution_Main_DLG_ChallengeQuest != null)
            {
                myth_Evolution_Main_DLG_ChallengeQuest.ChallengeQuestUnique = (int)unique;
                myth_Evolution_Main_DLG_ChallengeQuest.InitDummyUI();
            }
        }
        else if (a == eChallenge_OpenUi.eDAILYDUNGEON.ToString())
        {
            DailyDungeon_Select_Dlg dailyDungeon_Select_Dlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.DAILYDUNGEON_SELECT) as DailyDungeon_Select_Dlg;

            if (dailyDungeon_Select_Dlg != null)
            {
                dailyDungeon_Select_Dlg.SetData();
            }
        }
        else if (a == eChallenge_OpenUi.eNEWEXPLORATION.ToString())
        {
            NewExplorationMainDlg newExplorationMainDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.NEWEXPLORATION_MAIN_DLG) as NewExplorationMainDlg;

            if (newExplorationMainDlg != null)
            {
                newExplorationMainDlg.SetInfo();
            }
        }
        else if (a == eChallenge_OpenUi.eSOLCOMPOSE.ToString())
        {
            SolComposeMainDlg solComposeMainDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.SOLCOMPOSE_MAIN_DLG) as SolComposeMainDlg;
        }
        if (NrTSingleton <EventConditionHandler> .Instance.OpenUIByChallenge != null)
        {
            NrTSingleton <EventConditionHandler> .Instance.OpenUIByChallenge.OnTrigger(unique);
        }
    }