diff options
| author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-24 18:15:49 +0200 |
|---|---|---|
| committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-24 18:15:49 +0200 |
| commit | d69b634615134e294c4eee45827adc1eb73514b9 (patch) | |
| tree | 8f3f6059d423a24fd25643c7cdb975ddafda1d12 /src/main/java/cc/polyfrost/oneconfig/test | |
| parent | 4b0c40c93658fd871876effa371ad9159845293d (diff) | |
| download | OneConfig-d69b634615134e294c4eee45827adc1eb73514b9.tar.gz OneConfig-d69b634615134e294c4eee45827adc1eb73514b9.tar.bz2 OneConfig-d69b634615134e294c4eee45827adc1eb73514b9.zip | |
OC-23 finish migration system
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/test')
| -rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java b/src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java index e8aad07..cecbef8 100644 --- a/src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java +++ b/src/main/java/cc/polyfrost/oneconfig/test/TestConfig.java @@ -6,6 +6,7 @@ import cc.polyfrost.oneconfig.config.core.OneKeyBind; import cc.polyfrost.oneconfig.config.data.*; import cc.polyfrost.oneconfig.config.interfaces.Config; import cc.polyfrost.oneconfig.config.core.OneColor; +import cc.polyfrost.oneconfig.config.migration.VigilanceMigrator; import cc.polyfrost.oneconfig.lwjgl.image.SVGs; import net.minecraftforge.fml.common.FMLCommonHandler; @@ -33,7 +34,7 @@ public class TestConfig extends Config { subcategory = "Test", type = OptionType.KEYBIND ) - public static OneKeyBind oneKeyBind = new OneKeyBind( 18, 80); + public static OneKeyBind oneKeyBind = new OneKeyBind(18, 80); @Option( name = "Keybind (2x)", @@ -324,9 +325,44 @@ public class TestConfig extends Config { ) public static float slider13 = 26; + @Option( + name = "Int test", + type = OptionType.SLIDER, + category = "Migrator", + subcategory = "Test", + min = 5, + max = 3287 + ) + public static int testInt = 5; + + @Option( + name = "Float test", + type = OptionType.SLIDER, + category = "Migrator", + subcategory = "Test", + min = 5, + max = 3287 + ) + public static float floatTest = 5f; + + @Option( + name = "Boolean test", + type = OptionType.SWITCH, + category = "Migrator", + subcategory = "Test" + ) + public static boolean booleanTest = false; + + @Option( + name = "String test", + type = OptionType.TEXT, + category = "Migrator", + subcategory = "Test" + ) + public static String stringTest123 = "text"; public TestConfig() { - super(new Mod("hacks", ModType.UTIL_QOL, SVGs.CASH_DOLLAR.filePath), "hacksConfig.json"); + super(new Mod("hacks", ModType.UTIL_QOL, SVGs.CASH_DOLLAR.filePath, new VigilanceMigrator("./config/testConfig.toml")), "hacksConfig.json"); addDependency("switchTest5", () -> switchTest4); addDependency("Test page.testDescription", () -> false); } |
