示例#1
0
 private void CreateLevelEditorMenu(LevelEditorScreen les)
 {
     Center = new Vector2(-.7f, center.Y);
     menuButtons.Clear();
     AddMenuButton("Resume", delegate { SwitchToScreen(les); }, true);
     AddMenuButton("Save As", delegate {
         openSaveAsDialog(Model.Serializer.getLevelVisualAsLevel(les.LevelVisual));
     });
     AddMenuButton("Load", delegate { CreateLoadMenu(new MainMenuScreen(les)); });
     AddMenuButton("exit", GoToMainMenu);
 }
示例#2
0
 public MainMenuScreen(LevelEditorScreen les) : base()
 {
     CreateLevelEditorMenu(les);
 }