Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
            private static bool Prefix(InGameUI __instance, InGameUI.State state, bool instant)
            {
                if (PlaylistManager.state == PlaylistManager.PlaylistState.Endless)
                {
                    if (state == InGameUI.State.ResultsPage)
                    {
                        PlaylistEndlessManager.NextSong();
                        return(false); //false = don't run function
                    }
                }

                return(true);
            }
Ejemplo n.º 3
0
 private static void Prefix(InGameUI __instance, InGameUI.State state, bool instant = false)
 {
     if (state == InGameUI.State.PausePage || state == InGameUI.State.EndGameContinuePage)
     {
         Show(__instance);
     }
     else
     {
         Hide();
     }
     if (SettingsManager.needSaving)
     {
         SettingsManager.SaveSettings();
     }
 }