From 54a0c6ec4a0eedc67c5c761464cd1ef895cfc286 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Tue, 20 Feb 2024 22:20:29 +0000 Subject: [PATCH] make button input have name --- src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs b/src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs index b404e3c1..452e2c5c 100644 --- a/src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs +++ b/src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs @@ -453,6 +453,7 @@ public SubmitAction CreateButton(Menu menu, string buttonLabel, string tooltip, var newButtonObj = Object.Instantiate(existingButton); newButtonObj.transform.parent = GetParentForAddedElements(menu); newButtonObj.transform.localScale = Vector3.one; + newButtonObj.name = $"UIElement-Button-{buttonLabel}"; // the thing we're copying is already LEFT, so dont need to handle it if (side == MenuSide.CENTER)