public void HandleHealtWarningViewControllerdidFinish() { healthWarningViewController.didFinishEvent -= HandleHealtWarningViewControllerdidFinish; eulaViewController.didFinishEvent -= healthWarningFlowCoordinator.HandleEulaViewControllerdidFinish; eulaViewController.didFinishEvent += HandleEulaViewControllerdidFinish; healthWarningFlowCoordinator.SetProperty("title", "The Modding Community"); healthWarningFlowCoordinator.InvokeMethod("PresentViewController", eulaViewController, null, false); SharedCoroutineStarter.instance.StartCoroutine(RewriteHealthAndSafety()); }
private IEnumerator RewriteHealthAndSafety() { yield return(new WaitUntil(() => eulaViewController.isInViewControllerHierarchy)); healthWarningFlowCoordinator.SetProperty("title", "Moon's Playground"); var textPageScrollView = eulaViewController.GetField <TextPageScrollView>("_textPageScrollView"); textPageScrollView.SetText("By using my playground mod, you understand that:\n\n" + "1. You may experience problems that don't exist in the vanilla game.\n\n" + "2. Some features (see: meme features such as \"WTF On Miss\") may cause real damage to your computer\n\n" + "3. By agreeing to this, you waive your right to blame me for issues and/or damage caused by this plugin"); }