예제 #1
0
 private static void Postfix(InGameUI __instance, InGameUI.State state, bool instant)
 {
     if (state == InGameUI.State.FailedPage)
     {
         DeleteButton.CreateDeleteButton(ButtonUtils.ButtonLocation.Failed);
         FavoriteButton.CreateFavoriteButton(ButtonUtils.ButtonLocation.Failed);
         AddPlaylistButton.CreatePlaylistButton(ButtonUtils.ButtonLocation.Failed);
         PlaylistEndlessSkipButton.CreateSkipButton(ButtonUtils.ButtonLocation.Failed);
     }
     else if (state == InGameUI.State.PausePage)
     {
         DeleteButton.CreateDeleteButton(ButtonUtils.ButtonLocation.Pause);
         FavoriteButton.CreateFavoriteButton(ButtonUtils.ButtonLocation.Pause);
         AddPlaylistButton.CreatePlaylistButton(ButtonUtils.ButtonLocation.Pause);
         PlaylistEndlessSkipButton.CreateSkipButton(ButtonUtils.ButtonLocation.Pause);
     }
     else if (state == InGameUI.State.EndGameContinuePage)
     {
         DeleteButton.CreateDeleteButton(ButtonUtils.ButtonLocation.EndGame);
         FavoriteButton.CreateFavoriteButton(ButtonUtils.ButtonLocation.EndGame);
         AddPlaylistButton.CreatePlaylistButton(ButtonUtils.ButtonLocation.EndGame);
     }
     else if (state == InGameUI.State.PracticeModeOverPage)
     {
         DeleteButton.CreateDeleteButton(ButtonUtils.ButtonLocation.PracticeModeOver);
         FavoriteButton.CreateFavoriteButton(ButtonUtils.ButtonLocation.PracticeModeOver);
         AddPlaylistButton.CreatePlaylistButton(ButtonUtils.ButtonLocation.PracticeModeOver);
     }
 }
예제 #2
0
            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();
                }
            }