From 86f6f3e8c3ae91ddbc29985f73e1d4f29f0a4b17 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Fri, 29 Apr 2022 17:27:45 +0200 Subject: text box config done --- .../java/io/polyfrost/oneconfig/test/TestPage.java | 38 +++++++++++++++++++--- 1 file changed, 34 insertions(+), 4 deletions(-) (limited to 'src/main/java/io/polyfrost/oneconfig/test') diff --git a/src/main/java/io/polyfrost/oneconfig/test/TestPage.java b/src/main/java/io/polyfrost/oneconfig/test/TestPage.java index 93fe201..66deed8 100644 --- a/src/main/java/io/polyfrost/oneconfig/test/TestPage.java +++ b/src/main/java/io/polyfrost/oneconfig/test/TestPage.java @@ -5,10 +5,40 @@ import io.polyfrost.oneconfig.config.data.OptionType; public class TestPage { @Option( - name = "Other test switch", - description = "Best description", + name = "Text field 1x", subcategory = "Test", - type = OptionType.SWITCH + type = OptionType.TEXT ) - public static boolean switchTest; + public static String testDescription; + + @Option( + name = "Text field 1x", + subcategory = "Test", + type = OptionType.TEXT + ) + public static String testDescription2; + + @Option( + name = "Text field 2x", + subcategory = "Test", + type = OptionType.TEXT, + size = 2 + ) + public static String testDescription3; + + @Option( + name = "Secure text field", + subcategory = "Test", + type = OptionType.TEXT, + secure = true + ) + public static String testDescription4; + + @Option( + name = "Text box", + subcategory = "Test", + type = OptionType.TEXT, + multiLine = true + ) + public static String testDescription5; } -- cgit