Example #1
0
 private void Close()
 {
     Navigation.PopUnique(new Navigation.NavigateBackHandler(WelcomeQuests.OnNavigateBack));
     s_instance = null;
     this.m_clickCatcher.RemoveEventListener(UIEventType.RELEASE, new UIEvent.Handler(this.CloseWelcomeQuests));
     this.FadeEffectsOut();
     object[] args = new object[] { "scale", Vector3.zero, "time", 0.5f, "oncompletetarget", base.gameObject, "oncomplete", "DestroyWelcomeQuests" };
     iTween.ScaleTo(base.gameObject, iTween.Hash(args));
     SoundManager.Get().LoadAndPlay("new_quest_click_and_shrink");
     this.m_bannerFX.Play("BannerClose");
     GameToastMgr.Get().UpdateQuestProgressToasts();
     GameToastMgr.Get().AddSeasonTimeRemainingToast();
     if (this.m_showRequestData != null)
     {
         if (!this.m_showRequestData.m_keepRichPresence)
         {
             PresenceMgr.Get().SetPrevStatus();
         }
         if (this.m_showRequestData.m_onCloseCallback != null)
         {
             this.m_showRequestData.m_onCloseCallback();
         }
     }
     InnKeepersSpecial.Get().Show(false);
 }
 private void OnNetCacheReady()
 {
     NetCache.Get().UnregisterNetCacheHandler(new NetCache.NetCacheCallback(this.OnNetCacheReady));
     if (AchieveManager.Get().HasActiveQuests(true))
     {
         WelcomeQuests.Show(false, null, false);
     }
     else
     {
         GameToastMgr.Get().UpdateQuestProgressToasts();
     }
 }
Example #3
0
 private void OnNetCacheReady()
 {
     NetCache.Get().UnregisterNetCacheHandler(new NetCache.NetCacheCallback(this.OnNetCacheReady));
     if (!NetCache.Get().GetNetObject <NetCache.NetCacheFeatures>().Games.Practice)
     {
         if (!SceneMgr.Get().IsModeRequested(SceneMgr.Mode.HUB))
         {
             SceneMgr.Get().SetNextMode(SceneMgr.Mode.HUB);
             Error.AddWarningLoc("GLOBAL_FEATURE_DISABLED_TITLE", "GLOBAL_FEATURE_DISABLED_MESSAGE_PRACTICE", new object[0]);
         }
     }
     else if (AchieveManager.Get().HasActiveQuests(true))
     {
         WelcomeQuests.Show(false, null, false);
     }
     else
     {
         GameToastMgr.Get().UpdateQuestProgressToasts();
     }
 }