コード例 #1
0
 public static void OnNewUserSearch()
 {
     Search();
     FilterPanel.ResetFilterState();
     MenuState.I.GoToSongPage();
     SongSearchButton.UpdateSearchButton();
 }
コード例 #2
0
ファイル: Hooks.cs プロジェクト: MeepsKitten/SongBrowser
            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();
                }
            }
コード例 #3
0
 public static void CancelSearch()
 {
     searchInProgress = false;
     MenuState.I.GoToSongPage();
     SongSearchButton.UpdateSearchButton();
 }