diff --git a/src/UI.cs b/src/UI.cs index cceebaf..3011704 100644 --- a/src/UI.cs +++ b/src/UI.cs @@ -56,7 +56,7 @@ private static void AddModSettingsButton() private static void OpenModSettingsMenu() { MenuState.I.mainPage.SetPageActive(false, false); - modMenuSP.SetPageActive(true, true); + modMenuSP.SetPageActive(false, true); MelonCoroutines.Start(WaitForPageOpen(PreparePage)); } @@ -258,9 +258,10 @@ private static void Postfix(MenuState __instance, MenuState.State state) static IEnumerator WaitForPageOpen(Action callback) { - yield return new WaitForSeconds(0.1f); - callback.Invoke(); - yield return null; + while (modMenuOM.transform.childCount < 5) { + yield return null; + } + callback.Invoke(); } public static MinMaxStepDefault ParseMinMaxStep(string input)