public void SelectSaveGame(SaveFile saveFile) { SelectedSaveGame = saveFile; SaveGameActions = new MenuTextSelection(null, new Vector2(Scene.Viewport.Width / 2, Scene.Viewport.Height / 2), 256, 4); SaveGameActions.Add(new ActAction("Load", "", () => { Scene.LoadGame(SelectedSaveGame); })); SaveGameActions.AddDefault(new ActAction("Cancel", "", () => { SaveGameActions.Close(); })); }
public override void HandleInput(Scene scene) { if (SaveGameActions != null) { SaveGameActions.HandleInput(scene); if (SaveGameActions.ShouldClose) { SaveGameActions = null; } return; } InfoWindow.HandleInput(scene); base.HandleInput(scene); }