public static void OnNewUserSearch() { Search(); FilterPanel.ResetFilterState(); MenuState.I.GoToSongPage(); SongSearchButton.UpdateSearchButton(); }
private static void Postfix(MenuState __instance, ref MenuState.State state) { if (state == MenuState.State.LaunchPage) { DeleteButton.CreateDeleteButton(); FavoriteButton.CreateFavoriteButton(); AddPlaylistButton.CreatePlaylistButton(); DifficultyDisplay.Show(); } else { DifficultyDisplay.Hide(); } if (state == MenuState.State.SongPage) { ScoreDisplayList.Show(); RandomSongButton.CreateRandomSongButton(); SongSearchButton.CreateSearchButton(); SelectPlaylistButton.CreatePlaylistButton(); PlaylistEndlessButton.CreatePlaylistButton(); RefreshButton.CreateRefreshButton(); PlaylistEndlessManager.ResetIndex(); } else { ScoreDisplayList.Hide(); PlaylistEndlessButton.HidePlaylistButton(); } if (state == MenuState.State.MainPage) { //PlaylistManager.DownloadMissingSongs(); } }
public static void CancelSearch() { searchInProgress = false; MenuState.I.GoToSongPage(); SongSearchButton.UpdateSearchButton(); }