Ejemplo n.º 1
0
 static void Postfix(XUiC_MainMenu __instance)
 {
     Debug.Log("Clearing SphereCache...");
     SphereCache.DoorCache.Clear();
     SphereCache.PathingCache.Clear();
     SphereCache.caveChunks.Clear();
     SphereCache.caveEntrances.Clear();
 }
Ejemplo n.º 2
0
 static void Postfix(XUiC_MainMenu __instance)
 {
     if (SphereIIToggleCapsLock.GetScrollLock())
     {
         if (GamePrefs.GetInt(EnumGamePrefs.AutopilotMode) == 0)
         {
             GamePrefs.Set(EnumGamePrefs.AutopilotMode, 1);
             MethodInfo method = __instance.GetType().GetMethod("btnContinueGame_OnPressed", BindingFlags.NonPublic | BindingFlags.Instance);
             method.Invoke(__instance, new object[] { null, null });
         }
         else if (GamePrefs.GetInt(EnumGamePrefs.AutopilotMode) == 1)
         {
             MethodInfo method = __instance.GetType().GetMethod("btnQuit_OnPressed", BindingFlags.NonPublic | BindingFlags.Instance);
             method.Invoke(__instance, new object[] { null, null });
         }
     }
 }