add hidden config option

This commit is contained in:
sethtroll
2017-07-10 17:13:58 -05:00
parent 073249813f
commit c90b770647
2 changed files with 7 additions and 0 deletions

View File

@@ -38,4 +38,6 @@ public @interface ConfigItem
String name();
String description();
boolean hidden() default false;
}

View File

@@ -149,6 +149,11 @@ public class ConfigPanel extends PluginPanel
for (ConfigItemDescriptor cid : cd.getItems())
{
if (cid.getItem().hidden())
{
continue;
}
JPanel item = new JPanel();
item.setLayout(new BorderLayout());
item.add(new JLabel(cid.getItem().name()), BorderLayout.CENTER);