コード例 #1
0
        /// <summary>
        /// Event handler for when the Load Game menu entry is selected.
        /// </summary>
        void LoadGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            LoadSaveScreen lss = new LoadSaveScreen(LoadSaveMode.Load, "Load Game");

            lss.ScreenExiting += LoadGameMenuEntryContinued;
            ScreenManager.AddScreen(lss, e.PlayerIndex);
        }
コード例 #2
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));
            }
        }