/// <summary> /// The main menu was clicked, perform the button's action. /// </summary> /// <param name="button">the button pressed</param> private static void PerformMainMenuAction(int button) { switch (button) { case MAIN_MENU_PLAY_BUTTON: GameController.StartGame(); break; case MAIN_MENU_SETUP_BUTTON: GameController.AddNewState(GameState.AlteringSettings); break; case MAIN_MENU_TOP_SCORES_BUTTON: GameController.AddNewState(GameState.ViewingHighScores); break; case MAIN_MENU_HELP_BUTTON: GameController.AddNewState(GameState.Help); break; case MAIN_MENU_FULLSCREEN_BUTTON: SwinGame.ToggleFullScreen(); break; case MAIN_MENU_AUDIO_BUTTON: GameController.SwitchAudio(); break; case MAIN_MENU_QUIT_BUTTON: GameController.EndCurrentState(); break; } }