diff options
| author | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-05-10 20:19:07 +0100 |
|---|---|---|
| committer | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-05-10 20:19:07 +0100 |
| commit | cefe13f6c232ed5ca2d458b896a76df2ee25a8a3 (patch) | |
| tree | d64f34e2ee55124ce9c3469fea9333d94ccfb23f /src/main/java/cc/polyfrost/oneconfig/config/annotations | |
| parent | b5a1aea2239b0beace4d4407d2ab75294c6eab12 (diff) | |
| parent | 3872c0ae8746e69671ac9b44ff94dc3c7b194817 (diff) | |
| download | OneConfig-cefe13f6c232ed5ca2d458b896a76df2ee25a8a3.tar.gz OneConfig-cefe13f6c232ed5ca2d458b896a76df2ee25a8a3.tar.bz2 OneConfig-cefe13f6c232ed5ca2d458b896a76df2ee25a8a3.zip | |
reduce dependency on minecraft + stuff
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 | 7 |
2 files changed, 11 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..efcadc8 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) @@ -82,4 +82,9 @@ public @interface Option { * Option for info option type */ InfoType infoType() default InfoType.INFO; + + /** + * Text displayed inside button + */ + String buttonText() default "Activate"; } |
