public PauseMenuScreen() : base("AVOCADO") { MenuEntry resumeGameMenuEntry = new MenuEntry("RESUME"); MenuEntry quitGameMenuEntry = new MenuEntry("MENU"); resumeGameMenuEntry.Selected += this.OnCancel; quitGameMenuEntry.Selected += this.QuitGameMenuEntrySelected; this.MenuEntries.Add(resumeGameMenuEntry); this.MenuEntries.Add(quitGameMenuEntry); }
public MainMenuScreen() : base("AVOCADO") { this.scrollVelocity = 0.3f; MenuEntry playGameMenuEntry = new MenuEntry("PLAY"); MenuEntry quitMenuEntry = new MenuEntry("QUIT"); playGameMenuEntry.Selected += this.PlayGameMenuEntrySelected; quitMenuEntry.Selected += this.OnCancel; this.MenuEntries.Add(playGameMenuEntry); this.MenuEntries.Add(quitMenuEntry); }