From b904dde56612fb7891e9e75ba84e409966da932a Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Tue, 19 Mar 2024 16:08:57 +0000 Subject: [PATCH] change localrotation of button with label --- 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 7fc6a4e8..bf536c5e 100644 --- a/src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs +++ b/src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs @@ -519,6 +519,7 @@ public SubmitAction CreateButtonWithLabel(Menu menu, string label, string button var newButtonObj = new GameObject($"UIElement-{label}"); newButtonObj.transform.parent = GetParentForAddedElements(menu); newButtonObj.transform.localScale = Vector3.one; + newButtonObj.transform.localRotation = Quaternion.identity; var layoutElement = newButtonObj.AddComponent(); layoutElement.minHeight = 70;