diff --git a/src/OWML.ModHelper.Menus/NewMenuSystem/TitleMenuManager.cs b/src/OWML.ModHelper.Menus/NewMenuSystem/TitleMenuManager.cs index c80ce194..bb62c494 100644 --- a/src/OWML.ModHelper.Menus/NewMenuSystem/TitleMenuManager.cs +++ b/src/OWML.ModHelper.Menus/NewMenuSystem/TitleMenuManager.cs @@ -20,6 +20,7 @@ public SubmitAction CreateTitleButton(string text, int index, bool fromTop) var newButton = Object.Instantiate(existingTitleButton.gameObject); newButton.transform.parent = existingTitleButton.transform.parent; newButton.transform.localScale = existingTitleButton.transform.localScale; + newButton.name = $"Button-{text}"; Object.Destroy(newButton.GetComponent()); var submitAction = newButton.AddComponent(); @@ -30,7 +31,7 @@ public SubmitAction CreateTitleButton(string text, int index, bool fromTop) newButton.GetComponent().alpha = 0; var animController = GameObject.Find("TitleMenuManagers").GetComponent(); var list = animController._buttonFadeControllers.ToList(); - list.Insert(newButton.transform.GetSiblingIndex() - 3, new CanvasGroupFadeController + list.Insert(newButton.transform.GetSiblingIndex() - 2, new CanvasGroupFadeController { group = newButton.GetComponent() });