mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 06:08:16 +08:00
Add advanced attributes to BepInEx config
This commit is contained in:
parent
7a2b4aa257
commit
b39b044f79
@ -21,7 +21,11 @@ namespace UnityExplorer.Loader.BIE
|
|||||||
|
|
||||||
public override void RegisterConfigElement<T>(ConfigElement<T> config)
|
public override void RegisterConfigElement<T>(ConfigElement<T> config)
|
||||||
{
|
{
|
||||||
var entry = Config.Bind(CTG_NAME, config.Name, config.Value, config.Description);
|
object[] tags = null;
|
||||||
|
if (config.IsInternal)
|
||||||
|
tags = new[] { "Advanced" };
|
||||||
|
|
||||||
|
var entry = Config.Bind(CTG_NAME, config.Name, config.Value, new ConfigDescription(config.Description, null, tags));
|
||||||
|
|
||||||
entry.SettingChanged += (object o, EventArgs e) =>
|
entry.SettingChanged += (object o, EventArgs e) =>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user