Ejemplo n.º 1
0
 public void AlphaAni(float startA, float destA, float time)
 {
     SpriteRoot[] componentsInChildren = base.transform.GetComponentsInChildren <SpriteRoot>(true);
     if (componentsInChildren != null)
     {
         SpriteRoot[] array = componentsInChildren;
         for (int i = 0; i < array.Length; i++)
         {
             SpriteRoot spriteRoot = array[i];
             if (null != spriteRoot)
             {
                 FadeSprite.Do(spriteRoot, EZAnimation.ANIM_MODE.FromTo, new Color(spriteRoot.color.r, spriteRoot.color.g, spriteRoot.color.b, startA), new Color(spriteRoot.color.r, spriteRoot.color.g, spriteRoot.color.b, destA), new EZAnimation.Interpolator(EZAnimation.linear), time, 0f, null, null);
             }
         }
     }
     SpriteText[] componentsInChildren2 = base.transform.GetComponentsInChildren <SpriteText>(true);
     if (componentsInChildren2 != null)
     {
         SpriteText[] array2 = componentsInChildren2;
         for (int j = 0; j < array2.Length; j++)
         {
             SpriteText spriteText = array2[j];
             if (null != spriteText)
             {
                 FadeText.Do(spriteText, EZAnimation.ANIM_MODE.FromTo, new Color(spriteText.color.r, spriteText.color.g, spriteText.color.b, startA), new Color(spriteText.color.r, spriteText.color.g, spriteText.color.b, destA), new EZAnimation.Interpolator(EZAnimation.linear), time, 0f, null, null);
             }
         }
     }
 }
Ejemplo n.º 2
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 FadeListItemContainer(float dur)
 {
     SpriteRoot[] componentsInChildren = base.transform.GetComponentsInChildren <SpriteRoot>(true);
     if (componentsInChildren != null)
     {
         SpriteRoot[] array = componentsInChildren;
         for (int i = 0; i < array.Length; i++)
         {
             SpriteRoot spriteRoot = array[i];
             if (null != spriteRoot)
             {
                 FadeSprite.Do(spriteRoot, EZAnimation.ANIM_MODE.FromTo, new Color(1f, 1f, 1f, 1f), new Color(1f, 1f, 1f, 0f), new EZAnimation.Interpolator(EZAnimation.linear), dur, 0f, null, null);
             }
         }
     }
     SpriteText[] componentsInChildren2 = base.transform.GetComponentsInChildren <SpriteText>(true);
     if (componentsInChildren2 != null)
     {
         SpriteText[] array2 = componentsInChildren2;
         for (int j = 0; j < array2.Length; j++)
         {
             SpriteText spriteText = array2[j];
             if (null != spriteText)
             {
                 FadeText.Do(spriteText, EZAnimation.ANIM_MODE.FromTo, new Color(1f, 1f, 1f, 1f), new Color(1f, 1f, 1f, 0f), new EZAnimation.Interpolator(EZAnimation.linear), dur, 0f, null, null);
             }
         }
     }
 }
Ejemplo n.º 4
0
        public void SetFadeTextureFromBundle(string bundlepath)
        {
            this.imageKey = string.Empty;
            Texture2D texture = NrTSingleton <UIImageBundleManager> .Instance.GetTexture(bundlepath);

            if (null != texture)
            {
                base.SetTexture(texture);
                FadeSprite.Do(this, EZAnimation.ANIM_MODE.FromTo, new Color(0f, 0f, 0f, 0f), new Color(1f, 1f, 1f, 1f), new EZAnimation.Interpolator(EZAnimation.linear), 0.5f, 0f, null, null);
            }
            else
            {
                NrTSingleton <UIImageBundleManager> .Instance.RequestBundleImage(bundlepath, new PostProcPerItem(this.SetFadeImage));
            }
        }
Ejemplo n.º 5
0
 private void SetFadeImage(WWWItem _item, object _param)
 {
     this.SetImage(_item, _param);
     FadeSprite.Do(this, EZAnimation.ANIM_MODE.FromTo, new Color(0f, 0f, 0f, 0f), new Color(1f, 1f, 1f, 1f), new EZAnimation.Interpolator(EZAnimation.linear), 0.5f, 0f, null, null);
 }