Exemplo n.º 1
0
        /// <summary>
        /// Event handler for when the Load Game menu entry is selected.
        /// </summary>
        void LoadGameMenuEntryContinued(object sender, ActiveMenuItemEventArgs e)
        {
            LoadSaveScreen lss = (LoadSaveScreen)sender;
            string         ls  = lss.chosenOne.Trim();

            if (lss.isConfirmed && !string.IsNullOrEmpty(ls))
            {
                lss = null;
                SmthLoadingScreen.LoadSmth(ScreenManager, evdEnGlobals.theGame.ContinueActions[0], true, e.PlayerIndex,
                                           new GameplayScreen(false, ls));
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     SmthLoadingScreen.LoadSmth(ScreenManager, evdEnGlobals.theGame.NewGameActions[0], true, e.PlayerIndex,
                                new GameplayScreen(true), new ToonMenuScreen(true));
 }