diff options
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/test')
3 files changed, 40 insertions, 5 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java b/src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java index 8d14fb0..ab3b09f 100644 --- a/src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java +++ b/src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java @@ -16,13 +16,13 @@ public class TestConfig extends Config { name = "Test Switch", size = 2 ) - boolean testSwitch = false; + public boolean testSwitch = false; @Checkbox( name = "Check box", size = 2 ) - boolean testCheckBox = true; + public static boolean testCheckBox = true; @Info( text = "Test Info", @@ -42,11 +42,11 @@ public class TestConfig extends Config { options = {"option1", "option2", "option3"}, size = 2 ) - int testDropdown = 0; + private int testDropdown = 0; @Color( name = "Test Color", - size = 2 + size = 2 ) OneColor testColor = new OneColor(0, 255, 255); @@ -54,7 +54,7 @@ public class TestConfig extends Config { name = "Test Text", size = 2 ) - String testText = "Epic Text"; + private static String testText = "Epic Text"; @Button( name = "Test Button", @@ -83,6 +83,21 @@ public class TestConfig extends Config { ) boolean testDualOption = false; + @Page( + name = "Test Page", + location = PageLocation.TOP + + ) + public TestPage testPage = new TestPage(); + + @Page( + name = "Test Page", + description = "Test Description", + location = PageLocation.BOTTOM + + ) + public TestPage testPage2 = new TestPage(); + @Switch( name = "Test Switch", size = 2, @@ -98,6 +113,11 @@ public class TestConfig extends Config { ) boolean testSwitch2 = false; + @HUD( + name = "Test HUD", + category = "HUD" + ) + public TestHud hud = new TestHud(false, 0, 0); public TestConfig() { super(new Mod("Test Mod", ModType.UTIL_QOL, new VigilanceMigrator("./config/testConfig.toml")), "hacksConfig.json"); diff --git a/src/main/java/cc/polyfrost/oneconfig/test/TestHud.java b/src/main/java/cc/polyfrost/oneconfig/test/TestHud.java index 0a59c23..023ae43 100644 --- a/src/main/java/cc/polyfrost/oneconfig/test/TestHud.java +++ b/src/main/java/cc/polyfrost/oneconfig/test/TestHud.java @@ -1,5 +1,7 @@ package cc.polyfrost.oneconfig.test; +import cc.polyfrost.oneconfig.config.annotations.Switch; +import cc.polyfrost.oneconfig.config.annotations.Text; import cc.polyfrost.oneconfig.hud.TextHud; import net.minecraft.client.Minecraft; @@ -19,7 +21,13 @@ public class TestHud extends TextHud { return lines; } + @Switch( + name = "Has Second Line" + ) public boolean hasSecondLine = false; + @Text( + name = "Second Line Text" + ) public String secondLine = "Epic text"; } diff --git a/src/main/java/cc/polyfrost/oneconfig/test/TestPage.java b/src/main/java/cc/polyfrost/oneconfig/test/TestPage.java index abb4cc7..54a775a 100644 --- a/src/main/java/cc/polyfrost/oneconfig/test/TestPage.java +++ b/src/main/java/cc/polyfrost/oneconfig/test/TestPage.java @@ -1,4 +1,11 @@ package cc.polyfrost.oneconfig.test; +import cc.polyfrost.oneconfig.config.annotations.Switch; + public class TestPage { + + @Switch( + name = "Epic Test Switch" + ) + boolean test = false; } |