public BrowseTutorials() { InitializeComponent(); addGrid(); addItemsToGrid(@"Tutorials", "*.m4v"); backButton = new NavigationButton(BackButton, delegate() { foreach (box selection in Boxes) { selection.unHighlightBox(); } Message.Content = ""; Boxes = new List<box>(); return MainWindow.soloPage; }); doneButton = new NavigationButton(DoneButtonBackground, delegate() { if (Boxes.Count == 0) { Message.Content = "You have to pick at least one tutorial!"; return null; } else { tearDown(); // (MainWindow.freeFormPage as FreeFormMode)._type = "Buddy" (MainWindow.freeFormPage as FreeFormMode).initTutor(tutorialIndex); //(MainWindow.tutorPage as TutorMode).initTutor(tutorialIndex); return MainWindow.loadingPage; } }); }
public BrowseTutorials() { InitializeComponent(); addGrid(); addItemsToGrid(@"Tutorials", "*.m4v"); backButton = new NavigationButton(BackButton, delegate() { foreach (box selection in Boxes) { selection.unHighlightBox(); } Message.Content = ""; Boxes = new List <box>(); return(MainWindow.soloPage); }); doneButton = new NavigationButton(DoneButtonBackground, delegate() { if (Boxes.Count == 0) { Message.Content = "You have to pick at least one tutorial!"; return(null); } else { tearDown(); // (MainWindow.freeFormPage as FreeFormMode)._type = "Buddy" (MainWindow.freeFormPage as FreeFormMode).initTutor(tutorialIndex); //(MainWindow.tutorPage as TutorMode).initTutor(tutorialIndex); return(MainWindow.loadingPage); } }); }
public HomePage() { InitializeComponent(); // Create some navigation buttons to wrap our images soloButton = new NavigationButton(SoloBackground, delegate() { return MainWindow.soloPage; }); buddyButton = new NavigationButton(BuddyBackground, delegate() { ((BrowseMusic)MainWindow.browseMusicPage).initBrowseMusic("Buddy"); return MainWindow.browseMusicPage; }); }
public HomePage() { InitializeComponent(); // Create some navigation buttons to wrap our images soloButton = new NavigationButton(SoloBackground, delegate() { return(MainWindow.soloPage); }); buddyButton = new NavigationButton(BuddyBackground, delegate() { ((BrowseMusic)MainWindow.browseMusicPage).initBrowseMusic("Buddy"); return(MainWindow.browseMusicPage); }); }
public SoloPage() { InitializeComponent(); freeButton = new NavigationButton(solo_remixBackground, delegate() { ((BrowseMusic)MainWindow.browseMusicPage).initBrowseMusic("Solo"); return(MainWindow.browseMusicPage); }); tutorButton = new NavigationButton(solo_learningBackground, delegate() { return(MainWindow.browseTutorialsPage); }); backButton = new NavigationButton(BackButton, delegate() { return(MainWindow.homePage); }); }
public SoloPage() { InitializeComponent(); freeButton = new NavigationButton(solo_remixBackground, delegate() { ((BrowseMusic)MainWindow.browseMusicPage).initBrowseMusic("Solo"); return MainWindow.browseMusicPage; }); tutorButton = new NavigationButton(solo_learningBackground, delegate() { return MainWindow.browseTutorialsPage; }); backButton = new NavigationButton(BackButton, delegate() { return MainWindow.homePage; }); }
public FreeFormMode() { InitializeComponent(); InitializeAvatars(); initSliders(); quitButton = new NavigationButton(QuitButton, delegate() { tearDown(); return MainWindow.loadingPage; }); homeButton = new NavigationButton(HomeButton, delegate() { tearDown(); return MainWindow.homePage; }); resumeButton = new NavigationButton(ResumeButton, delegate() { Resume(); return null; }); tutorialsButton = new NavigationButton(TutorialsButton, delegate() { tearDown(); return MainWindow.browseTutorialsPage; }); new NavigationButton(NextTutorial, delegate() { Tutorial.nextTutorial(); _isPaused = false; Processing.Audio.Resume(); // NextOverLay.Visibility = System.Windows.Visibility.Hidden; PauseOverlay.Visibility = System.Windows.Visibility.Hidden; MainWindow.setManipulating(true); mainCanvas.Background = new SolidColorBrush(Colors.Black); playTutorial(Tutorial.getCurrentTutorial()); return null; }); // Tutor stuff string tutorials_base = System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "\\Tutorials\\"; pause = new Tutorial("Pause", "To pause move your left arm to a 45 degree angle with your body", new Uri(tutorials_base + "00pause.m4v"), pauseChecker, null); tempo = new Tutorial("Changing the Tempo", "To increase the tempo lean towards the right, to decrease the tempo lean towards the left", new Uri(tutorials_base + "01tempo.m4v"), tempoChecker, "Tempo determins the speed of a song"); pitch = new Tutorial("Changing the Pitch", "To increase/decrease the pitch put your arms above your head and move your body up/down", new Uri(tutorials_base + "02pitch.m4v"), pitchChecker, "Pitch determines how low or high the sounds of a song becomes"); volume = new Tutorial("Changing the Volume", "To change the volume put both your arms in the midsection of your body and expand/intract your hands", new Uri(tutorials_base + "03volume.m4v"), volumeChecker); seek = new Tutorial("Changing the Position of the track", "To seek around the track put your right hand up and hover it left and right", new Uri(tutorials_base + "04seek.m4v"), seekChecker); switch_tracks = new Tutorial("Switching Tracks", "To switch between your tracks jump to the left/right", new Uri(tutorials_base + "05swaptracks.m4v"), switchTrackChecker); Tutorial.addTutorial(pause); Tutorial.addTutorial(tempo); Tutorial.addTutorial(pitch); Tutorial.addTutorial(volume); Tutorial.addTutorial(seek); Tutorial.addTutorial(switch_tracks); }
public BrowseMusic() { InitializeComponent(); addGrid(); addItemsToGrid(@"..\..\Resources\Music", "*.mp3"); // Create navigation buttons backButton = new NavigationButton(BackButton, delegate() { foreach (box selection in mySelections) { selection.unHighlightBox(); } mySelections = new List <box>(); Message.Content = ""; if (_type == "Buddy") { return(MainWindow.homePage); } else//if (_type == "Solo") { return(MainWindow.soloPage); } }); doneButton = new NavigationButton(DoneButtonBackground, delegate(){ if (mySelections.Count == 0) { Message.Content = "You have to pick at least one song!"; return(null); } else { // this.NavigationService.Navigate(MainWindow.loadingPage); ArrayList musicAddrList = new ArrayList(); ArrayList musicList = new ArrayList(); foreach (box selection in mySelections) { musicAddrList.Add(selection.address); musicList.Add(selection.name); } if (_type == "Buddy") { ((FreeFormMode)MainWindow.freeFormPage).initBuddyForm( ((string)musicAddrList[0]), ((string)musicList[0])); MainWindow.setManipulating(true); } else if (_type == "Solo") { ((FreeFormMode)MainWindow.freeFormPage).initSoloForm(musicAddrList, musicList); MainWindow.setManipulating(true); } else { throw new Exception(); } tearDown(); return(MainWindow.loadingPage); } }); }
public BrowseMusic() { InitializeComponent(); addGrid(); addItemsToGrid(@"..\..\Resources\Music", "*.mp3"); // Create navigation buttons backButton = new NavigationButton(BackButton, delegate() { foreach (box selection in mySelections) { selection.unHighlightBox(); } mySelections = new List<box>(); Message.Content = ""; if (_type == "Buddy") return MainWindow.homePage; else//if (_type == "Solo") return MainWindow.soloPage; }); doneButton = new NavigationButton(DoneButtonBackground, delegate(){ if (mySelections.Count == 0) { Message.Content = "You have to pick at least one song!"; return null; } else { // this.NavigationService.Navigate(MainWindow.loadingPage); ArrayList musicAddrList = new ArrayList(); ArrayList musicList = new ArrayList(); foreach (box selection in mySelections) { musicAddrList.Add(selection.address); musicList.Add(selection.name); } if (_type == "Buddy") { ((FreeFormMode)MainWindow.freeFormPage).initBuddyForm( ((string)musicAddrList[0]), ((string)musicList[0])); MainWindow.setManipulating(true); } else if (_type == "Solo") { ((FreeFormMode)MainWindow.freeFormPage).initSoloForm(musicAddrList, musicList); MainWindow.setManipulating(true); } else { throw new Exception(); } tearDown(); return MainWindow.loadingPage; } }); }
public FreeFormMode() { InitializeComponent(); InitializeAvatars(); initSliders(); quitButton = new NavigationButton(QuitButton, delegate() { tearDown(); return(MainWindow.loadingPage); }); homeButton = new NavigationButton(HomeButton, delegate() { tearDown(); return(MainWindow.homePage); }); resumeButton = new NavigationButton(ResumeButton, delegate() { Resume(); return(null); }); tutorialsButton = new NavigationButton(TutorialsButton, delegate() { tearDown(); return(MainWindow.browseTutorialsPage); }); new NavigationButton(NextTutorial, delegate() { Tutorial.nextTutorial(); _isPaused = false; Processing.Audio.Resume(); // NextOverLay.Visibility = System.Windows.Visibility.Hidden; PauseOverlay.Visibility = System.Windows.Visibility.Hidden; MainWindow.setManipulating(true); mainCanvas.Background = new SolidColorBrush(Colors.Black); playTutorial(Tutorial.getCurrentTutorial()); return(null); }); // Tutor stuff string tutorials_base = System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "\\Tutorials\\"; pause = new Tutorial("Pause", "To pause move your left arm to a 45 degree angle with your body", new Uri(tutorials_base + "00pause.m4v"), pauseChecker, null); tempo = new Tutorial("Changing the Tempo", "To increase the tempo lean towards the right, to decrease the tempo lean towards the left", new Uri(tutorials_base + "01tempo.m4v"), tempoChecker, "Tempo determins the speed of a song"); pitch = new Tutorial("Changing the Pitch", "To increase/decrease the pitch put your arms above your head and move your body up/down", new Uri(tutorials_base + "02pitch.m4v"), pitchChecker, "Pitch determines how low or high the sounds of a song becomes"); volume = new Tutorial("Changing the Volume", "To change the volume put both your arms in the midsection of your body and expand/intract your hands", new Uri(tutorials_base + "03volume.m4v"), volumeChecker); seek = new Tutorial("Changing the Position of the track", "To seek around the track put your right hand up and hover it left and right", new Uri(tutorials_base + "04seek.m4v"), seekChecker); switch_tracks = new Tutorial("Switching Tracks", "To switch between your tracks jump to the left/right", new Uri(tutorials_base + "05swaptracks.m4v"), switchTrackChecker); Tutorial.addTutorial(pause); Tutorial.addTutorial(tempo); Tutorial.addTutorial(pitch); Tutorial.addTutorial(volume); Tutorial.addTutorial(seek); Tutorial.addTutorial(switch_tracks); }
// Store the button's text color, so that when we reset it, we can put it back correctly public static void MouseEnter(NavigationButton button) { currentlySelectedObject = button; }