Esempio n. 1
0
 static void Postfix(XUiC_NewContinueGame __instance)
 {
     if (SphereIIToggleCapsLock.GetScrollLock())
     {
         MethodInfo method = __instance.GetType().GetMethod("BtnStart_OnPressed", BindingFlags.NonPublic | BindingFlags.Instance);
         method.Invoke(__instance, new object[] { null, null });
     }
 }
Esempio 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 });
         }
     }
 }