Example #1
0
        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);
        }
Example #2
0
        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);
        }