Merge pull request #113 from Sethtroll/addhiddenconfig
add hidden config option
This commit is contained in:
@@ -38,4 +38,6 @@ public @interface ConfigItem
|
|||||||
String name();
|
String name();
|
||||||
|
|
||||||
String description();
|
String description();
|
||||||
|
|
||||||
|
boolean hidden() default false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,6 +149,11 @@ public class ConfigPanel extends PluginPanel
|
|||||||
|
|
||||||
for (ConfigItemDescriptor cid : cd.getItems())
|
for (ConfigItemDescriptor cid : cd.getItems())
|
||||||
{
|
{
|
||||||
|
if (cid.getItem().hidden())
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
JPanel item = new JPanel();
|
JPanel item = new JPanel();
|
||||||
item.setLayout(new BorderLayout());
|
item.setLayout(new BorderLayout());
|
||||||
item.add(new JLabel(cid.getItem().name()), BorderLayout.CENTER);
|
item.add(new JLabel(cid.getItem().name()), BorderLayout.CENTER);
|
||||||
|
|||||||
Reference in New Issue
Block a user