Ejemplo n.º 1
0
 private static void Postfix(InGameUI __instance, OptionsMenu.Page page)
 {
     if (page == OptionsMenu.Page.Main && MissingSongsUI.lookingAtMissingSongs)
     {
         MissingSongsUI.GoToMissingSongsPage();
     }
 }
Ejemplo n.º 2
0
 private static void Postfix(OptionsMenu __instance, int col, string label, OptionsMenuButton.SelectedActionDelegate onSelected, OptionsMenuButton.IsCheckedDelegate isChecked)
 {
     if (__instance.mPage == OptionsMenu.Page.Main)
     {
         if (buttonCount == 0) // only do this once, bit of a hack
         {
             MissingSongsUI.SetMenu(__instance);
         }
     }
 }
Ejemplo n.º 3
0
 private static bool Prefix(OptionsMenu __instance)
 {
     // should always be on the missing songs page when this happens
     if (MissingSongsUI.lookingAtMissingSongs)
     {
         MissingSongsUI.Cancel();
         return(false);
     }
     return(true);
 }