Esempio n. 1
0
 static void Postfix(bool firstActivation, HMUI.ViewController.ActivationType activationType, ref ResultsViewController __instance, ref bool ____newHighScore, ref GameObject ____newHighScoreText)
 {
     if (GMPUI.disableFireworks)
     {
         ____newHighScoreText.SetActive(initialNewHighScore);
     }
 }
Esempio n. 2
0
 static void Prefix(bool firstActivation, HMUI.ViewController.ActivationType activationType, ref ResultsViewController __instance, ref bool ____newHighScore)
 {
     if (activationType == HMUI.ViewController.ActivationType.AddedToHierarchy)
     {
         if (GMPUI.disableFireworks)
         {
             Plugin.Log("Disabling fireworks");
             initialNewHighScore = ____newHighScore;
             ____newHighScore    = false;
         }
     }
 }
 private static void DidActivatePatch(object self, bool value1, HMUI.ViewController.ActivationType value2)
 {
     didActivateRedirection.InvokeOriginal(self, value1, value2);
     try
     {
         if (BailOutModePlugin.BailedOut)
         {
             //((GameplayOptions)typeof(ResultsViewController).GetField("_gameplayOptions", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(self)).noEnergy = false;
             //BS_Utils.Plugin.LevelData.GameplayCoreSceneSetupData.gameplayModifiers.noFail = false;
             BailOutModePlugin.BailedOut = false;
             Console.WriteLine("[BailOut] Reset No Fail");
         }
     }
     catch (Exception e)
     {
         Console.Write(e);
     }
     BailOutModePlugin.BailedOut = false;
 }