示例#1
0
文件: PauseMenu.cs 项目: Zeludon/FEZ
 public PauseMenu(Game game)
   : base(game)
 {
   this.UpdateOrder = -10;
   this.DrawOrder = 2009;
   PauseMenu.Instance = this;
 }
示例#2
0
 public override void Initialize()
 {
     base.Initialize();
     SharedContentManager.Preload();
     Logger.Log("StaticPreloader", "SharedContentManager preloaded.");
     this.SoundManager.InitializeLibrary();
     Logger.Log("StaticPreloader", "Music library initialized.");
     this.SoundManager.ReloadVolumeLevels();
     Logger.Log("StaticPreloader", "Volume levels loaded.");
     this.PlayerManager.FillAnimations();
     Logger.Log("StaticPreloader", "Animations filled.");
     TextScroll.PreInitialize();
     Logger.Log("StaticPreloader", "Text scroll pre-initialized.");
     WorldMap.PreInitialize();
     Logger.Log("StaticPreloader", "World map pre-initialized.");
     PauseMenu.PreInitialize();
     Logger.Log("StaticPreloader", "Pause menu pre-initialized.");
 }
示例#3
0
文件: PauseMenu.cs 项目: Zeludon/FEZ
 protected override void Dispose(bool disposing)
 {
   base.Dispose(disposing);
   PauseMenu.Instance = (PauseMenu) null;
   if (Intro.Instance == null && EndCutscene32Host.Instance == null && EndCutscene64Host.Instance == null)
     this.GameState.InCutscene = false;
   this.InputManager.StrictRotation = this.wasStrict;
 }
示例#4
0
 public void Pause(bool toCredits)
 {
   if (this.Paused)
     return;
   this.paused = true;
   this.OnPauseStateChanged();
   PauseMenu pauseMenu = new PauseMenu(ServiceHelper.Game);
   if (toCredits)
   {
     pauseMenu.EndGameMenu = true;
     ServiceHelper.AddComponent((IGameComponent) pauseMenu);
     pauseMenu.nextMenuLevel = (MenuLevel) pauseMenu.CreditsMenu;
     pauseMenu.nextMenuLevel.Reset();
   }
   else
     ServiceHelper.AddComponent((IGameComponent) new TileTransition(ServiceHelper.Game)
     {
       ScreenCaptured = (Action) (() => ServiceHelper.AddComponent((IGameComponent) pauseMenu)),
       WaitFor = (Func<bool>) (() => pauseMenu.Ready)
     });
 }