Example #1
0
 protected override void OnExit(GameState prev, ExitReason reason)
 {
     if (this._scene != null)
     {
         this._scene.Exit();
         this._scene = (MainMenuScene)null;
     }
     this.App.UI.PanelMessage -= new UIEventPanelMessage(this.UICommChannel_PanelMessage);
     this.App.UI.DeleteScreen("MainMenu");
 }
Example #2
0
 protected override void OnPrepare(GameState prev, object[] parms)
 {
     if (this.App.GameSettings.LoadMenuCombat)
     {
         this._scene = new MainMenuScene();
     }
     if (this._scene != null)
     {
         this._scene.Enter(this.App);
     }
     this.App.UI.LoadScreen("MainMenu");
     this.App.Network.EnableChatWidgetPlayerList(false);
     this.App.Network.EnableChatWidget(false);
 }