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/test | |
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/test')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java | 91 |
1 files changed, 90 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java b/src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java index a741865..d314354 100644 --- a/src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java +++ b/src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java @@ -5,6 +5,7 @@ import cc.polyfrost.oneconfig.config.annotations.Option; import cc.polyfrost.oneconfig.config.data.*; import cc.polyfrost.oneconfig.config.interfaces.Config; import cc.polyfrost.oneconfig.lwjgl.OneColor; +import net.minecraftforge.fml.common.FMLCommonHandler; public class TestConfig extends Config { @@ -18,6 +19,23 @@ public class TestConfig extends Config { public static boolean ignored; @Option( + name = "Crash game", + subcategory = "Test", + type = OptionType.BUTTON, + buttonText = "Crash!" + ) + public static Runnable runnable = () -> FMLCommonHandler.instance().exitJava(69, false); + + @Option( + name = "Crash game", + subcategory = "Test", + type = OptionType.BUTTON, + size = 2, + buttonText = "Crash!" + ) + public static Runnable runnable2 = () -> FMLCommonHandler.instance().exitJava(69, false); + + @Option( name = "Test color selector", subcategory = "Test", type = OptionType.COLOR, @@ -195,6 +213,7 @@ public class TestConfig extends Config { max = 25 ) public static int slider1; + @Option( name = "Stepped Slider", subcategory = "Sliders", @@ -207,8 +226,78 @@ public class TestConfig extends Config { ) public static float slider2; + @Option( + name = "Slider", + type = OptionType.SLIDER, + category = "subcategory test", + min = 5, + max = 3287 + ) + public static float slider = 26; + + @Option( + name = "Slider", + type = OptionType.SLIDER, + category = "subcategory test", + min = 5, + max = 3287 + ) + public static float slider10 = 26; + + @Option( + name = "Slider", + type = OptionType.SLIDER, + category = "subcategory test", + min = 5, + max = 3287, + subcategory = "Second subcategory" + ) + public static float slider11 = 26; + + @Option( + name = "Header Test", + type = OptionType.HEADER, + category = "subcategory test", + subcategory = "Second subcategory", + size = 2 + ) + public static boolean somethingHere; + + + @Option( + name = "Slider", + type = OptionType.SLIDER, + category = "subcategory test", + min = 5, + max = 3287, + subcategory = "Second subcategory" + ) + public static float slider12 = 26; + + @ConfigPage( + name = "Test page", + location = PageLocation.TOP, + category = "subcategory test", + subcategory = "Second subcategory" + ) + public static TestPage testPage23 = new TestPage(); - TestHud testHud = new TestHud(); + @ConfigPage( + name = "Test page", + location = PageLocation.BOTTOM, + category = "subcategory test", + subcategory = "Second subcategory" + ) + public static TestPage testPage24 = new TestPage(); + + @Option( + name = "Slider", + type = OptionType.SLIDER, + category = "subcategory test", + min = 5, + max = 3287 + ) + public static float slider13 = 26; public TestConfig() { |