Skip to content
This repository was archived by the owner on Jan 24, 2023. It is now read-only.

Commit fc190c7

Browse files
committed
Update Reslider
1 parent e0bef30 commit fc190c7

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

UI/QuickMenu/ReSliderCategory.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal static GameObject ContainerPrefab
2020
if (_ContainerPrefab == null)
2121
{
2222
_ContainerPrefab = QuickMenuEx.Instance.field_Public_Transform_0
23-
.Find("Window/QMParent/Menu_AudioSettings/Content/Audio").gameObject;
23+
.Find("Window/QMParent/Menu_AudioSettings/Content").gameObject;
2424
}
2525
return _ContainerPrefab;
2626
}
@@ -38,11 +38,8 @@ public ReMenuSliderContainer(string name, Transform parent = null) : base(Contai
3838
Object.Destroy(control.gameObject);
3939
}
4040

41-
var vertLayout = GameObject.GetComponent<VerticalLayoutGroup>();
42-
43-
vertLayout.childAlignment = TextAnchor.UpperLeft;
44-
vertLayout.padding.top = 8;
45-
vertLayout.padding.left = 64;
41+
var vlg = GameObject.GetComponent<VerticalLayoutGroup>();
42+
vlg.m_Padding = new RectOffset(64, 64, 0, 0);
4643
}
4744

4845
public ReMenuSliderContainer(Transform transform) : base(transform)

0 commit comments

Comments
 (0)