public static void SelectButton(MainGame game) { switch (MainGame.ClickedButton) { case ButtonMenu.start: MainGame.SelectedMenu = SelectedMenu.categories; game.ToggleSizeListButtons(MainGame.ListButtonsMenuStart, false); game.ToggleSizeListButtons(MainGame.ListButtonsCategories, true); break; case ButtonMenu.quit: game.Quit(); break; case ButtonMenu.menu: if (MainGame.InGame) { game.ClearGame(); MainGame.SelectedMenu = SelectedMenu.start; game.HandleSetupMenu(); } else { game.ClearListsMenu(); MainGame.SelectedMenu = SelectedMenu.start; game.HandleSetupMenu(); } break; case ButtonMenu.howTo: MainGame.HowTo = !MainGame.HowTo; break; case ButtonMenu.instruments: game.ToggleSizeListButtons(MainGame.ListButtonsCategories, false); game.ToggleSizeListButtons(MainGame.ListButtonsSizes, true); MainGame.SelectedCategory = MainGame.ClickedButton; MainGame.SelectedMenu = SelectedMenu.sizes; break; case ButtonMenu.mammals: game.ToggleSizeListButtons(MainGame.ListButtonsCategories, false); game.ToggleSizeListButtons(MainGame.ListButtonsSizes, true); MainGame.SelectedCategory = MainGame.ClickedButton; MainGame.SelectedMenu = SelectedMenu.sizes; break; case ButtonMenu.occupations: game.ToggleSizeListButtons(MainGame.ListButtonsCategories, false); game.ToggleSizeListButtons(MainGame.ListButtonsSizes, true); MainGame.SelectedCategory = MainGame.ClickedButton; MainGame.SelectedMenu = SelectedMenu.sizes; break; case ButtonMenu.colours: game.ToggleSizeListButtons(MainGame.ListButtonsCategories, false); game.ToggleSizeListButtons(MainGame.ListButtonsSizes, true); MainGame.SelectedCategory = MainGame.ClickedButton; MainGame.SelectedMenu = SelectedMenu.sizes; break; case ButtonMenu.small: game.ToggleSizeListButtons(MainGame.ListButtonsSizes, false); MainGame.SelectedSize = SettingsSize.small; game.HandleSetupGameScreen(MainGame.SelectedCategory.ToString(), (int)MainGame.SelectedSize); game.ClearListsMenu(); break; case ButtonMenu.medium: game.ToggleSizeListButtons(MainGame.ListButtonsSizes, false); MainGame.SelectedSize = SettingsSize.medium; game.HandleSetupGameScreen(MainGame.SelectedCategory.ToString(), (int)MainGame.SelectedSize); game.ClearListsMenu(); break; case ButtonMenu.large: game.ToggleSizeListButtons(MainGame.ListButtonsSizes, false); MainGame.SelectedSize = SettingsSize.large; game.HandleSetupGameScreen(MainGame.SelectedCategory.ToString(), (int)MainGame.SelectedSize); game.ClearListsMenu(); break; } }