public static bool ShowPrefix(BirthdayChildPanel __instance, HumanAI child) { Transform panel = __instance.transform.GetChild(0); if (panel.Find("ButtonContainer") == null) { PlannedParenthoodMod.SetupBirthdayPanel(__instance); } __instance.descriptionText.text = String.Format(Localization.GetText("witchy_PlannedParenthood_BirthdayPanelText"), child.father.GetFullName(), child.mother.GetFullName()); String randomGirlName = HumanManager.GetRandomHumanNamePart(false, Gender.Female); String randomBoyName = HumanManager.GetRandomHumanNamePart(false, Gender.Male); String lastName = (UnityEngine.Random.Range(0f, 1f) < 0.5f) ? child.mother.lastName : child.father.lastName; panel.Find("GirlPanel").GetComponentInChildren <InputField>().text = $"{randomGirlName} {lastName}"; panel.Find("BoyPanel").GetComponentInChildren <InputField>().text = $"{randomBoyName} {lastName}"; PlannedParenthoodMod.InputChanged(__instance); AccessTools.Field(typeof(BirthdayChildPanel), "child").SetValue(__instance, child); __instance.gameObject.SetActive(true); return(false); }