diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-10 17:20:24 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-10 17:20:24 +0200 |
commit | f0aac9cac78fc14e2991741061c67b622c039f37 (patch) | |
tree | b957cfafb51656efdaa1cd92ce99281ef27328e9 /src/main/java/cc/polyfrost/oneconfig/config/annotations | |
parent | 20cf8146e88f3ca06399fdf163badef759f01d2c (diff) | |
download | OneConfig-f0aac9cac78fc14e2991741061c67b622c039f37.tar.gz OneConfig-f0aac9cac78fc14e2991741061c67b622c039f37.tar.bz2 OneConfig-f0aac9cac78fc14e2991741061c67b622c039f37.zip |
new category system
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config/annotations')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/config/annotations/ConfigPage.java | 5 | ||||
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/annotations/ConfigPage.java b/src/main/java/cc/polyfrost/oneconfig/config/annotations/ConfigPage.java index f9d7c19..432d65c 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/annotations/ConfigPage.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/annotations/ConfigPage.java @@ -29,4 +29,9 @@ public @interface ConfigPage { * The category of the page */ String category() default "General"; + + /** + * The subcategory of the page + */ + String subcategory() default ""; } diff --git a/src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java b/src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java index d5e9fc7..633e7b9 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java @@ -29,7 +29,7 @@ public @interface Option { /** * The subcategory of the component (displayed as header) */ - String subcategory(); + String subcategory() default ""; /** * The width of the option (1 = half width, 2 = full width) |