Beispiel #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 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;
    }