示例#1
0
    private void EndAni(EZAnimation obj)
    {
        this.m_Label_Label2.Visible = true;
        this.m_Label_Label3.Visible = true;
        this.m_LabelBack.Visible    = true;
        FadeSprite.Do(this.m_LabelBack, EZAnimation.ANIM_MODE.FromTo, new Color(1f, 1f, 1f, 0f), new Color(1f, 1f, 1f, 1f), new EZAnimation.Interpolator(EZAnimation.linear), ChapterStart_DLG.m_fTextAniTime, 0f, null, null);
        CQuestGroup questGroupByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestGroupByQuestUnique(this.m_strCurrentQuestUnique);

        if (questGroupByQuestUnique == null)
        {
            return;
        }
        string empty             = string.Empty;
        string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("75");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            textFromInterface,
            "count",
            questGroupByQuestUnique.GetPage()
        });

        this.m_Label_Label2.Text = empty;
        this.m_Label_Label2.SetLocation((GUICamera.width - this.m_Label_Label2.width) / 2f, this.m_LabelBack.GetLocationY() + 20f);
        FadeText.Do(this.m_Label_Label2.spriteText, EZAnimation.ANIM_MODE.FromTo, new Color(1f, 1f, 1f, 0f), new Color(1f, 1f, 1f, 1f), new EZAnimation.Interpolator(EZAnimation.linear), ChapterStart_DLG.m_fTextAniTime, 0f, null, null);
        string groupTitle = questGroupByQuestUnique.GetGroupTitle();

        this.m_Label_Label3.Text = groupTitle;
        this.m_Label_Label3.SetLocation((GUICamera.width - this.m_Label_Label3.width) / 2f, this.m_LabelBack.GetLocationY() + 63f);
        FadeText.Do(this.m_Label_Label3.spriteText, EZAnimation.ANIM_MODE.FromTo, new Color(1f, 1f, 1f, 0f), new Color(1f, 1f, 1f, 1f), new EZAnimation.Interpolator(EZAnimation.linear), ChapterStart_DLG.m_fTextAniTime, 0f, null, null);
        TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "QUEST", "ACT", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay));
        this.m_fStartTime = Time.realtimeSinceStartup;
    }
    public void SetData(GS_QUEST_GROUP_REWARD_ACK kInfo)
    {
        CQuestGroup questGroupByGroupUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestGroupByGroupUnique(kInfo.i32QuestGroupUnique);

        if (questGroupByGroupUnique == null)
        {
            return;
        }
        this.SetGrade(kInfo.i32Grade);
        this.m_DrawTexture_Item.BaseInfoLoderImage = NrTSingleton <ItemManager> .Instance.GetItemTexture(kInfo.stItemInfo.m_nItemUnique);

        string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("666");

        string textFromInterface2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("667");

        string text                 = questGroupByGroupUnique.GetChapterUnique().ToString() + textFromInterface2 + questGroupByGroupUnique.GetPage() + textFromInterface;
        string groupTitle           = questGroupByGroupUnique.GetGroupTitle();
        string text2                = text + " " + groupTitle;
        string itemNameByItemUnique = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(kInfo.stItemInfo);

        this.m_Label_Chapter.Text      = text;
        this.m_Label_ChapterTitle.Text = groupTitle;
        string textFromInterface3 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1239");

        string empty = string.Empty;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            textFromInterface3,
            "targetname1",
            text2,
            "targetname2",
            itemNameByItemUnique,
            "targetname3",
            kInfo.stItemInfo.m_nItemNum
        });

        this.m_Label_StageName.Text = empty;
        this.SetGrade(kInfo.i32Grade);
        Vector3 vector = default(Vector3);

        vector.x = base.GetLocation().x + 295f;
        vector.y = base.GetLocation().y - 190f;
        vector.z = this.m_DrawTexture_Item.transform.position.z;
    }
    public void SetQuestInfo(CQuest kQuest)
    {
        this.m_Quest       = kQuest;
        this.m_eQuestState = NrTSingleton <NkQuestManager> .Instance.GetQuestState(this.m_Quest.GetQuestUnique());

        if (this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE)
        {
            this.m_Quest_Info_Cancel.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1162");
        }
        else if (this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ONGOING || this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_COMPLETE)
        {
            this.m_Quest_Info_Cancel.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("799");
        }
        else
        {
            this.m_Quest_Info_Cancel.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("10");
        }
        CQuestGroup questGroupByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestGroupByQuestUnique(this.m_Quest.GetQuestUnique());

        short chapterUnique = NrTSingleton <NkQuestManager> .Instance.GetChapterUnique(this.m_Quest.GetQuestUnique());

        string text = "None";

        if (questGroupByQuestUnique != null)
        {
            text = questGroupByQuestUnique.GetPage();
        }
        string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("666");

        string textFromInterface2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("667");

        string text2 = string.Concat(new object[]
        {
            this.str1101,
            chapterUnique,
            textFromInterface2,
            " ",
            text,
            textFromInterface,
            ". ",
            this.str1107,
            kQuest.GetQuestTitle()
        });

        if (questGroupByQuestUnique.GetQuestType() == 2)
        {
            text2 = string.Concat(new string[]
            {
                this.str1101,
                NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1454"),
                ". ",
                this.str1107,
                kQuest.GetQuestTitle()
            });
        }
        else if (questGroupByQuestUnique.GetQuestType() == 100)
        {
            text2 = string.Concat(new string[]
            {
                this.str1101,
                NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("784"),
                ". ",
                this.str1107,
                kQuest.GetQuestTitle()
            });
        }
        this.m_Quest_Info_Chapter_Page_Quest_Title.SetText(text2);
        text2 = string.Empty;
        this.m_Quest_Info_Summary.Clear();
        ListItem listItem = new ListItem();

        if (this.m_eQuestState <= QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE)
        {
            text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1202");

            this.m_Quest_Info_Summary.SetColumnAlignment(0, SpriteText.Anchor_Pos.Middle_Center);
            this.m_Quest_Info_Description_BG2.SetAlpha(0.7f);
            this.m_Quest_Info_Description_BG1.SetAlpha(0.7f);
        }
        else
        {
            text2 = this.m_Quest.GetQuestSummary();
            this.m_Quest_Info_Summary.SetColumnAlignment(0, SpriteText.Anchor_Pos.Middle_Left);
            this.m_Quest_Info_Description_BG2.SetAlpha(1f);
            this.m_Quest_Info_Description_BG1.SetAlpha(1f);
        }
        listItem.SetColumnStr(0, text2);
        this.m_Quest_Info_Summary.Add(listItem);
        this.m_Quest_Info_Summary.RepositionItems();
        text2 = string.Empty;
        if (this.m_Quest.GetQuestCommon().cQuestCondition[0] != null)
        {
            text2 = this.m_Quest.GetConditionText(0L, 0);
            this.m_Quest_Info_Condition_Hint01.SetText(this.str1201 + text2);
        }
        if (this.m_Quest.GetQuestCommon().cQuestCondition[1] != null)
        {
            text2 = this.m_Quest.GetConditionText(0L, 1);
            this.m_Quest_Info_Condition_Hint02.SetText(this.str1201 + text2);
        }
        if (this.m_Quest.GetQuestCommon().cQuestCondition[2] != null)
        {
            text2 = this.m_Quest.GetConditionText(0L, 2);
            this.m_Quest_Info_Condition_Hint03.SetText(this.str1201 + text2);
        }
        if (this.m_eQuestState <= QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE)
        {
            this.m_Quest_Info_Condition_Hint01.SetText(string.Empty);
            this.m_Quest_Info_Condition_Hint02.SetText(string.Empty);
            this.m_Quest_Info_Condition_Hint03.SetText(string.Empty);
        }
        this.SetGrade();
        this.SetReward();
    }
示例#4
0
    public void SetEpisode(Adventure.AdventureInfo adventureInfo, CQuest quest)
    {
        this.m_CurrentAdventureInfo = adventureInfo;
        this.m_CurrentQuest         = quest;
        if (this.m_CurrentAdventureInfo == null)
        {
            return;
        }
        CQuestGroup questGroupByGroupUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestGroupByGroupUnique(this.m_CurrentAdventureInfo.questGroupUnique);

        string empty = string.Empty;

        if (questGroupByGroupUnique != null)
        {
            string text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("75");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                text,
                "count",
                questGroupByGroupUnique.GetPage()
            });

            this.m_EpisodeNum.Text  = empty;
            this.m_EpisodeName.Text = questGroupByGroupUnique.GetGroupTitle();
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromQuest_Title(questGroupByGroupUnique.GetGroupUnique().ToString() + "_Group_Sum");

            if (text != null)
            {
                this.m_EpisodeSummary.Visible = true;
                this.m_EpisodeSummary.Text    = text;
            }
            else
            {
                this.m_EpisodeSummary.Visible = false;
            }
        }
        NrCharKindInfo nrCharKindInfo;

        if (this.m_CurrentQuest != null)
        {
            nrCharKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.m_CurrentQuest.GetQuestCommon().i32QuestCharKind);

            if (nrCharKindInfo == null)
            {
                return;
            }
            this.m_Image.SetTexture(eCharImageType.LARGE, nrCharKindInfo.GetCharKind(), -1, string.Empty);
        }
        else
        {
            nrCharKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(this.m_CurrentAdventureInfo.monsterCode);

            if (nrCharKindInfo == null)
            {
                return;
            }
            this.m_Image.SetTexture(eCharImageType.LARGE, nrCharKindInfo.GetCharKind(), -1, string.Empty);
        }
        empty = string.Empty;
        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("93"),
            "targetname",
            nrCharKindInfo.GetName()
        });

        this.m_Start.Text = empty;
    }