private void btnLibrary_MouseDoubleClick(object sender, MouseButtonEventArgs e) { GameBoard.MainWindow library = new GameBoard.MainWindow("testmap.txt", setOfHeroes); this.NavigationService.Navigate(library); }
//Open gaige/final lvl board private void btnGaige_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (gaigeUnlocked == true) { GameBoard.MainWindow library = new GameBoard.MainWindow("testmap.txt", setOfHeroes, main, music); this.NavigationService.Navigate(library); } }
/********************************************LAUNCH BOARD***********************************************************/ //Open cafeteria/tutorial board private void btnCafeteria_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (cafeteriaUnlocked == true) { GameBoard.MainWindow tutorial = new GameBoard.MainWindow("tutorial.txt", setOfHeroes, main, music); this.NavigationService.Navigate(tutorial); //Load tutorial button tutorial.TutorialLevel_Click(null, null); } }