package dev.isxander.yacl.test; import dev.isxander.yacl.config.ConfigEntry; import dev.isxander.yacl.config.ConfigInstance; import dev.isxander.yacl.config.GsonConfigInstance; import java.awt.*; import java.util.List; import java.nio.file.Path; public class ConfigTest { public static final ConfigInstance GSON = GsonConfigInstance.createBuilder(ConfigTest.class) .setPath(Path.of("./config/yacl-test.json")) .build(); @ConfigEntry public boolean booleanToggle = false; @ConfigEntry public boolean customBooleanToggle = false; @ConfigEntry public boolean tickbox = false; @ConfigEntry public int intSlider = 0; @ConfigEntry public double doubleSlider = 0; @ConfigEntry public float floatSlider = 0; @ConfigEntry public long longSlider = 0; @ConfigEntry public String textField = "Hello"; @ConfigEntry public Color colorOption = Color.red; @ConfigEntry public double doubleField = 0.5; @ConfigEntry public float floatField = 0.5f; @ConfigEntry public int intField = 5; @ConfigEntry public long longField = 5; @ConfigEntry public Alphabet enumOption = Alphabet.A; @ConfigEntry public List stringList = List.of("This is quite cool.", "You can add multiple items!", "And it is integrated so well into Option groups!"); @ConfigEntry public List intList = List.of(1, 2, 3); @ConfigEntry public boolean groupTestRoot = false; @ConfigEntry public boolean groupTestFirstGroup = false; @ConfigEntry public boolean groupTestFirstGroup2 = false; @ConfigEntry public boolean groupTestSecondGroup = false; @ConfigEntry public int scrollingSlider = 0; public enum Alphabet { A, B, C } }