/// <summary> /// Initializes the buttons. /// </summary> private void InitializeButtons() { newGame = new NewGame(); activeComponents.AddFirst(newGame); highScore = new HighScoreButton(); activeComponents.AddAfter(activeComponents.Find(newGame), highScore); quit = new Quit(); activeComponents.AddLast(quit); resume = new Resume(); upgrade = new UpgradeButton(); menuButtonKlein = new MenuButtonKlein(); resumeKlein = new ResumeKlein(); mainMenu = new MainMenu(); yesButton = new YesButton(); noButton = new NoButton(); upgradeEcoWall = new UpgradeEcoWall(); upgradeEcoHelp = new UpgradeEcoHelp(); upgradeOilWall = new UpgradeOilWall(); upgradeOilHelp = new UpgradeOilHelp(); upgradeWeaponMagnum = new UpgradeWeaponMagnum(); upgradeWeaponRifle = new UpgradeWeaponRifle(); upgradeWeaponShotgun = new UpgradeWeaponShotgun(); submitHighscore = new SubmitHighscore(); upgradeButtonIG = new UpgradeButtonInGame(); }