diff --git a/Source/MainMenu/APSaveManager.cs b/Source/MainMenu/APSaveManager.cs index 76c2e55..14b76e8 100644 --- a/Source/MainMenu/APSaveManager.cs +++ b/Source/MainMenu/APSaveManager.cs @@ -169,13 +169,15 @@ private static void SetChangeButtonVisible(bool visible, Transform saveSlotButto var changeTextGO = changeButtonT.Find("Text (TMP)"); changeTextGO.GetComponent().text = "Change\nConnection\nInformation"; - // unbreak some button implementation details that Object.Instantiate() couldn't magically handle for us var changeUICB = changeButtonT.GetComponent(); + AccessTools.FieldRefAccess("_onSubmitActions").Invoke(changeUICB) = []; // get rid of the Delete actions + + // unbreak some button implementation details that Object.Instantiate() couldn't magically handle for us AccessTools.FieldRefAccess("belongGroup").Invoke(changeUICB) = changeButtonT.GetComponentInParent(); AccessTools.FieldRefAccess("_activateConditions").Invoke(changeUICB) = []; // this just needs to be non-null AccessTools.FieldRefAccess("_autoDisableAnimator").Invoke(changeUICB) = changeButtonT.GetComponent(); AccessTools.FieldRefAccess("_button").Invoke(changeUICB) = changeButtonT.GetComponent