Ejemplo n.º 1
0
 private static void Postfix(MenuState __instance, ref MenuState.State state)
 {
     if (!AudicaMod.panelButtonsCreated)
     {
         if (!AudicaMod.buttonsBeingCreated && state == MenuState.State.SongPage)
         {
             AudicaMod.CreateSongPanelButton();
         }
         return;
     }
     if (state == MenuState.State.SongPage)
     {
         MelonCoroutines.Start(AudicaMod.SetRandomSongButtonActive(true));
     }
     else if (state == MenuState.State.LaunchPage || state == MenuState.State.MainPage)
     {
         MelonCoroutines.Start(AudicaMod.SetRandomSongButtonActive(false));
     }
 }