示例#1
0
 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(); }));
 }
示例#2
0
 public override void HandleInput(Scene scene)
 {
     if (SaveGameActions != null)
     {
         SaveGameActions.HandleInput(scene);
         if (SaveGameActions.ShouldClose)
         {
             SaveGameActions = null;
         }
         return;
     }
     InfoWindow.HandleInput(scene);
     base.HandleInput(scene);
 }