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

Commit b39b044

Browse files
committed
Add advanced attributes to BepInEx config
1 parent 7a2b4aa commit b39b044

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Loader/BIE/BepInExConfigHandler.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ public override void Init()
2121

2222
public override void RegisterConfigElement<T>(ConfigElement<T> config)
2323
{
24-
var entry = Config.Bind(CTG_NAME, config.Name, config.Value, config.Description);
24+
object[] tags = null;
25+
if (config.IsInternal)
26+
tags = new[] { "Advanced" };
27+
28+
var entry = Config.Bind(CTG_NAME, config.Name, config.Value, new ConfigDescription(config.Description, null, tags));
2529

2630
entry.SettingChanged += (object o, EventArgs e) =>
2731
{

0 commit comments

Comments
 (0)