public OptionsMenuScreen() : base("Help & Options") { this.SetSubMenuTitleText("Configure Your Junk!"); fullscreenOn = SwitchGame.Instance.Graphics.IsFullScreen; musicOnEntry = new MenuEntry(string.Empty); rumbleOnEntry = new MenuEntry(string.Empty); fullScreenEntry = new MenuEntry(string.Empty); controlsEntry = new MenuEntry("Controls"); howToPlayEntry = new MenuEntry("How To Play"); creditsEntry = new MenuEntry("Credits"); statsEntry = new MenuEntry("Game Stats"); SetMenuEntryText(); MenuEntry backMenuEntry = new ExitOrBackMenuEntry("Back To Main Menu..."); rumbleOnEntry.Selected += RumbleOnMenuEntrySelected; musicOnEntry.Selected += MusicOnMenuEntrySelected; fullScreenEntry.Selected += FullScreenEntrySelected; controlsEntry.Selected += ControlsMenuEntrySelected; howToPlayEntry.Selected += HowToPlayMenuEntrySelected; creditsEntry.Selected += CreditsMenuEntrySelected; statsEntry.Selected += StatsMenuEntrySelected; backMenuEntry.Selected += OnCancel; MenuEntries.Add(rumbleOnEntry); MenuEntries.Add(musicOnEntry); MenuEntries.Add(fullScreenEntry); MenuEntries.Add(controlsEntry); MenuEntries.Add(howToPlayEntry); MenuEntries.Add(creditsEntry); MenuEntries.Add(statsEntry); MenuEntries.Add(backMenuEntry); }
public MainMenuScreen() : base("awesome switch logo goes here !") { this.SetShowBackgroundDecoration(false); // Create our menu entries. MenuEntry scoreAttack = new MenuEntry("1-Player Score Attack"); MenuEntry challengeMode = new MenuEntry("1-Player Challenges"); MenuEntry battleMode = new MenuEntry("2-Player Battle"); MenuEntry highScores = new MenuEntry("High Scores"); MenuEntry options = new MenuEntry("Help & Options"); MenuEntry exit = new ExitOrBackMenuEntry("Exit"); // Hook up menu event handlers. scoreAttack.Selected += ScoreAttackSelected; challengeMode.Selected += ChallengeModeSelected; battleMode.Selected += BattleModeSelected; highScores.Selected += HighScoresSelected; options.Selected += OptionsSelected; exit.Selected += ExitSelected; // Add entries to the menu. MenuEntries.Add(scoreAttack); MenuEntries.Add(challengeMode); MenuEntries.Add(battleMode); MenuEntries.Add(highScores); MenuEntries.Add(options); #if XBOX if (Guide.IsTrialMode) { gameIsInTrialMode = Guide.IsTrialMode; MenuEntries.Add(purchase); } #endif MenuEntries.Add(exit); }