Exemple #1
0
 public void HookSingal(On.Menu.SlugcatSelectMenu.orig_Singal original, SlugcatSelectMenu instance, MenuObject sender, string message)
 {
     if (message != null)
     {
         if (message == "CHARACTERDOWN")
         {
             currentScrollIndex--;
         }
         else if (message == "CHARACTERUP")
         {
             currentScrollIndex++;
         }
         else if (message[0] == 'C')
         {
             SelectedPlayer(int.Parse(message[1].ToString()));
         }
         else if (message == "START")
         {
             original(instance, sender, message);
             customArtSprite.isVisible = false;
         }
         else
         {
             original(instance, sender, message);
         }
     }
     else
     {
         original(instance, sender, message);
     }
 }
Exemple #2
0
 static void SlugMenuSignalHook(On.Menu.SlugcatSelectMenu.orig_Singal orig, Menu.SlugcatSelectMenu self, Menu.MenuObject sender, string message)
 {
     orig(self, sender, message);
     if (message == "START")
     {
         SlugName = Utils.GetSlugName(self.slugcatPages[self.slugcatPageIndex].colorName);
     }
 }