Beispiel #1
0
 private static void Postfix(OptionsMenu __instance, int col, string buttonLabel, string envString)
 {
     if (envString == "environment5" && !addedEnv)
     {
         int column = 1;
         for (int i = 0; i < ArenaLoaderMod.arenaNames.Count; i++)
         {
             __instance.AddEnvButton(column, ArenaLoaderMod.arenaNames[i], ArenaLoaderMod.arenaNames[i]);
             if (column == 1)
             {
                 column = 0;
             }
             else
             {
                 column = 1;
             }
         }
         addedEnv = true;
     }
 }