/// <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); }
/// <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)); } }