Skip to content

Commit

Permalink
Remove (Clone) from name
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaPiggy committed Sep 26, 2024
1 parent f375f3d commit 3014ea4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ public SubmitAction CreateButton(Menu menu, string buttonLabel, string tooltip,
.Find("HorizontalLayoutGroup").gameObject;

var newHorizLayout = Object.Instantiate(existingHorizLayout);
newHorizLayout.name = "HorizontalLayoutGroup";
newHorizLayout.transform.parent = rootObj.transform;
newHorizLayout.transform.localPosition = Vector3.zero;
newHorizLayout.transform.localScale = Vector3.one;
Expand Down Expand Up @@ -586,6 +587,7 @@ public SubmitAction CreateButtonWithLabel(Menu menu, string label, string button
.Find("HorizontalLayoutGroup").gameObject;

var newHorizLayout = Object.Instantiate(existingHorizLayout);
newHorizLayout.name = "HorizontalLayoutGroup";
newHorizLayout.transform.parent = newButtonObj.transform;
newHorizLayout.transform.localPosition = Vector3.zero;
newHorizLayout.transform.localScale = Vector3.one;
Expand Down

0 comments on commit 3014ea4

Please sign in to comment.