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); }
public MainMenuScreen(LevelEditorScreen les) : base() { CreateLevelEditorMenu(les); }