private void FadeEffectsOut()
    {
        FullScreenFXMgr mgr = FullScreenFXMgr.Get();

        mgr.StopVignette(0.2f, iTween.EaseType.easeOutCirc, null);
        mgr.StopBlur(0.2f, iTween.EaseType.easeOutCirc, null);
    }
    private void FadeEffectsOut()
    {
        FullScreenFXMgr mgr = FullScreenFXMgr.Get();

        mgr.StopVignette(0.2f, iTween.EaseType.easeOutCirc, new FullScreenFXMgr.EffectListener(this.OnVignetteFinished));
        mgr.StopBlur(0.2f, iTween.EaseType.easeOutCirc, null);
    }
    private void HideRewardCard()
    {
        iTween.ScaleTo(this.m_RewardBone, new Vector3(0.1f, 0.1f, 0.1f), 0.2f);
        FullScreenFXMgr mgr = FullScreenFXMgr.Get();

        mgr.StopVignette(0.2f, iTween.EaseType.easeOutCirc, null);
        mgr.StopBlur(0.2f, iTween.EaseType.easeOutCirc, new FullScreenFXMgr.EffectListener(this.EffectFadeOutFinished));
    }
 private void Awake()
 {
     s_instance = this;
     FullScreenFXMgr.Get().Vignette(1f, 0.5f, iTween.EaseType.easeInOutQuad, null);
     this.m_lessonTitle.Text          = GameStrings.Get("TUTORIAL_PROGRESS_LESSON_TITLE");
     this.m_missionProgressTitle.Text = GameStrings.Get("TUTORIAL_PROGRESS_TITLE");
     this.m_exitButton.gameObject.SetActive(false);
     this.InitMissionRecords();
 }
    private void FadeEffectsIn()
    {
        FullScreenFXMgr mgr = FullScreenFXMgr.Get();

        mgr.SetBlurBrightness(1f);
        mgr.SetBlurDesaturation(0f);
        mgr.Vignette(0.4f, 0.4f, iTween.EaseType.easeOutCirc, null);
        mgr.Blur(1f, 0.4f, iTween.EaseType.easeOutCirc, null);
    }
    private void FadeEffectsOut()
    {
        FullScreenFXMgr mgr = FullScreenFXMgr.Get();

        if (mgr != null)
        {
            mgr.StopVignette(0.2f, iTween.EaseType.easeOutCirc, null);
            mgr.StopBlur(0.2f, iTween.EaseType.easeOutCirc, null);
        }
        this.ScaleAway();
    }
    public void Disable()
    {
        base.enabled = false;
        this.SetDefaults();
        FullScreenFXMgr mgr = FullScreenFXMgr.Get();

        if (mgr != null)
        {
            mgr.WillReset();
        }
    }
Example #8
0
 private void EnableFullscreen(bool disableFullscreen)
 {
     if (this.m_EnableFullscreenMode && !disableFullscreen)
     {
         FullScreenFXMgr.Get().StartStandardBlurVignette(0.25f);
         if (this.m_FullscreenModeOffClicker != null)
         {
             this.m_FullscreenModeOffClicker.gameObject.SetActive(true);
         }
         this.m_FullscreenEnabled = true;
     }
 }
 protected override void ShowReward(bool updateCacheValues)
 {
     base.m_root.SetActive(true);
     this.m_classFrameContainer.UpdatePositions();
     foreach (GameObject obj2 in this.m_classFrames)
     {
         obj2.transform.localEulerAngles = new Vector3(0f, 0f, 180f);
         object[]  args      = new object[] { "amount", new Vector3(0f, 0f, 540f), "time", 1.5f, "easeType", iTween.EaseType.easeOutElastic, "space", Space.Self };
         Hashtable hashtable = iTween.Hash(args);
         iTween.RotateAdd(obj2, hashtable);
     }
     FullScreenFXMgr.Get().StartStandardBlurVignette(1f);
 }
Example #10
0
    private void FadeVignetteIn()
    {
        FullScreenFXMgr mgr = FullScreenFXMgr.Get();

        if (mgr == null)
        {
            UnityEngine.Debug.LogWarning("RewardBoxesDisplay: FullScreenFXMgr.Get() returned null!");
        }
        else
        {
            mgr.DisableBlur();
            mgr.Vignette(1.4f, 1.5f, iTween.EaseType.easeOutCirc, null);
        }
    }
 public void Hide()
 {
     if (this.m_shown)
     {
         this.m_shown = false;
         this.CleanOldChoices();
         this.m_rootObject.SetActive(false);
         if (UniversalInputManager.UsePhoneUI != null)
         {
             FullScreenFXMgr.Get().EndStandardBlurVignette(0.1f, null);
         }
         this.FireStateChangedEvent();
     }
 }
 protected void EnableFullScreenEffects(bool enable)
 {
     if (FullScreenFXMgr.Get() != null)
     {
         if (enable)
         {
             FullScreenFXMgr.Get().StartStandardBlurVignette(1f);
         }
         else
         {
             FullScreenFXMgr.Get().EndStandardBlurVignette(1f, null);
         }
     }
 }
Example #13
0
    private void FadeFullscreenEffectsOut()
    {
        FullScreenFXMgr mgr = FullScreenFXMgr.Get();

        if (mgr == null)
        {
            Debug.LogWarning("AdventureCompleteReward: FullScreenFXMgr.Get() returned null!");
        }
        else
        {
            mgr.StopVignette(1f, iTween.EaseType.easeOutCirc, new FullScreenFXMgr.EffectListener(this.DestroyThis));
            mgr.StopBlur(1f, iTween.EaseType.easeOutCirc, null);
        }
    }
Example #14
0
 private void DisableFullscreen()
 {
     if (this.m_FullscreenEnabled)
     {
         if (FullScreenFXMgr.Get() != null)
         {
             FullScreenFXMgr.Get().EndStandardBlurVignette(0.25f, null);
         }
         if (this.m_FullscreenModeOffClicker != null)
         {
             this.m_FullscreenModeOffClicker.gameObject.SetActive(false);
         }
         this.m_FullscreenEnabled = false;
     }
 }
Example #15
0
    private void FadeFullscreenEffectsIn()
    {
        FullScreenFXMgr mgr = FullScreenFXMgr.Get();

        if (mgr == null)
        {
            Debug.LogWarning("AdventureCompleteReward: FullScreenFXMgr.Get() returned null!");
        }
        else
        {
            mgr.SetBlurBrightness(0.85f);
            mgr.SetBlurDesaturation(0f);
            mgr.Vignette(0.4f, 0.5f, iTween.EaseType.easeOutCirc, null);
            mgr.Blur(1f, 0.5f, iTween.EaseType.easeOutCirc, null);
        }
    }
Example #16
0
    private void FadeFullscreenEffectsOut()
    {
        FullScreenFXMgr mgr = FullScreenFXMgr.Get();

        if (mgr == null)
        {
            UnityEngine.Debug.LogWarning("RewardBoxesDisplay: FullScreenFXMgr.Get() returned null!");
        }
        else
        {
            mgr.StopVignette(2f, iTween.EaseType.easeOutCirc, new FullScreenFXMgr.EffectListener(this.FadeFullscreenEffectsOutFinished));
            mgr.StopBlur(2f, iTween.EaseType.easeOutCirc, null);
            if (this.m_useDarkeningClickCatcher)
            {
                iTween.FadeTo(this.m_ClickCatcher, 0f, 0.5f);
            }
        }
    }
 protected override void Hide(bool animate)
 {
     if (this.m_presencePrevStatus == null)
     {
         this.m_presencePrevStatus = new Enum[] { PresenceStatus.HUB };
     }
     PresenceMgr.Get().SetStatus(this.m_presencePrevStatus);
     if (ShownUIMgr.Get() != null)
     {
         ShownUIMgr.Get().ClearShownUI();
     }
     base.DoHideAnimation(!animate, delegate {
         AchieveManager.Get().RemoveQuestCanceledListener(new AchieveManager.AchieveCanceledCallback(this.OnQuestCanceled));
         this.DeleteQuests();
         FullScreenFXMgr.Get().EndStandardBlurVignette(0.1f, null);
         base.m_shown = false;
     });
 }
Example #18
0
    private void FadeFullscreenEffectsIn()
    {
        FullScreenFXMgr mgr = FullScreenFXMgr.Get();

        if (mgr == null)
        {
            UnityEngine.Debug.LogWarning("RewardBoxesDisplay: FullScreenFXMgr.Get() returned null!");
        }
        else
        {
            mgr.SetBlurBrightness(0.85f);
            mgr.SetBlurDesaturation(0f);
            mgr.Vignette(0.4f, 0.5f, iTween.EaseType.easeOutCirc, null);
            mgr.Blur(1f, 0.5f, iTween.EaseType.easeOutCirc, null);
            if (this.m_useDarkeningClickCatcher)
            {
                iTween.FadeTo(this.m_ClickCatcher, 0.75f, 0.5f);
            }
        }
    }
 public void Show()
 {
     if (!this.m_shown)
     {
         Navigation.Push(new Navigation.NavigateBackHandler(this.OnNavigateBack));
         SoundManager.Get().LoadAndPlay("bar_button_A_press", base.gameObject);
         this.m_shown = true;
         this.m_rootObject.SetActive(true);
         if (!Options.Get().GetBool(Option.HAS_SEEN_DECK_HELPER, false))
         {
             NotificationManager.Get().CreateInnkeeperQuote(GameStrings.Get("VO_ANNOUNCER_CM_HELP_DECK_50"), "VO_ANNOUNCER_CM_HELP_DECK_50", 0f, null);
             Options.Get().SetBool(Option.HAS_SEEN_DECK_HELPER, true);
         }
         if (UniversalInputManager.UsePhoneUI != null)
         {
             FullScreenFXMgr.Get().StartStandardBlurVignette(0.1f);
         }
         this.FireStateChangedEvent();
         this.UpdateChoices();
     }
 }
Example #20
0
 public void ShowBanner(OnBannerHidden onBannerHiddenCallback = null)
 {
     if (this.m_root == null)
     {
         Debug.LogError("m_root not defined in banner!");
     }
     else
     {
         this.m_bannerHiddenCallback = onBannerHiddenCallback;
         this.m_originalScale        = this.m_root.transform.localScale;
         this.m_root.SetActive(true);
         object[] args = new object[] { "scale", new Vector3(0.01f, 0.01f, 0.01f), "time", this.m_showTime, "easetype", this.m_showEase };
         iTween.ScaleFrom(this.m_root, iTween.Hash(args));
         if (!string.IsNullOrEmpty(this.m_showSound))
         {
             SoundManager.Get().LoadAndPlay(FileUtils.GameAssetPathToName(this.m_showSound));
         }
         if (!string.IsNullOrEmpty(this.m_VOQuotePrefab) && !string.IsNullOrEmpty(this.m_VOQuoteLine))
         {
             NotificationManager.Get().CreateCharacterQuote(FileUtils.GameAssetPathToName(this.m_VOQuotePrefab), this.m_VOQuotePosition, GameStrings.Get(this.m_VOQuoteLine), this.m_VOQuoteLine, true, 0f, null, CanvasAnchor.CENTER);
         }
         FullScreenFXMgr.Get().StartStandardBlurVignette(this.m_showTime);
     }
 }
Example #21
0
 public void HideBanner()
 {
     if (this.m_root == null)
     {
         Debug.LogError("m_root not defined in banner!");
     }
     else
     {
         FullScreenFXMgr.Get().EndStandardBlurVignette(this.m_hideTime, null);
         this.m_root.transform.localScale = this.m_originalScale;
         object[] args = new object[] { "scale", new Vector3(0.01f, 0.01f, 0.01f), "oncomplete", delegate(object o) {
                                            UnityEngine.Object.Destroy(base.gameObject);
                                            if (this.m_bannerHiddenCallback != null)
                                            {
                                                this.m_bannerHiddenCallback();
                                            }
                                        }, "time", this.m_hideTime };
         iTween.ScaleTo(this.m_root, iTween.Hash(args));
         if (!string.IsNullOrEmpty(this.m_hideSound))
         {
             SoundManager.Get().LoadAndPlay(FileUtils.GameAssetPathToName(this.m_hideSound));
         }
     }
 }
Example #22
0
 private void FadeEffectsOut(float time = 0.2f)
 {
     FullScreenFXMgr.Get().EndStandardBlurVignette(time, new FullScreenFXMgr.EffectListener(this.OnFadeFinished));
 }
Example #23
0
 private void FadeEffectsIn(float time = 0.4f)
 {
     SceneUtils.SetLayer(base.gameObject, GameLayer.IgnoreFullScreenEffects);
     SceneUtils.SetLayer(Box.Get().m_letterboxingContainer, GameLayer.IgnoreFullScreenEffects);
     FullScreenFXMgr.Get().StartStandardBlurVignette(time);
 }
 private void ExitButtonPress(UIEvent e)
 {
     SceneMgr.Get().SetNextMode(SceneMgr.Mode.HUB);
     FullScreenFXMgr.Get().Vignette(0f, 0.5f, iTween.EaseType.easeInOutQuad, null);
 }
 protected override void HideReward()
 {
     base.HideReward();
     FullScreenFXMgr.Get().EndStandardBlurVignette(1f, new FullScreenFXMgr.EffectListener(this.DestroyClassChallengeUnlock));
     base.m_root.SetActive(false);
 }