UXAssist and CheatEnabler new release

This commit is contained in:
soarqin committed 2024-08-22 17:16:55 +08:00
1 parent fec947e71a
commit 7430f20181
14 files changed
+178 -29

No files matched your search

+3
View File
@@ -1,5 +1,6 @@
using System;
using BepInEx.Configuration;
using UITools;
using UnityEngine;
using UnityEngine.UI;
@@ -57,6 +58,8 @@ public class MyCheckBox : MonoBehaviour
cb.labelText = child.GetComponent<Text>();
cb.labelText.fontSize = fontSize;
cb.SetLabelText(label);
var width = cb.labelText.preferredWidth;
cb.labelText.rectTransform.sizeDelta = new Vector2(width, rect.sizeDelta.y);
}
//value