aboutsummaryrefslogtreecommitdiff
path: root/src/testmod/java/dev/isxander/yacl/test/config/ExampleConfig.java
blob: c7ea46c066515ba676eb2e69b1d258a75691dfdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package dev.isxander.yacl.test.config;

import dev.isxander.yacl.config.ConfigEntry;
import dev.isxander.yacl.config.ConfigInstance;
import dev.isxander.yacl.config.GsonConfigInstance;

import java.awt.*;
import java.nio.file.Path;

public class ExampleConfig {
    public static final ConfigInstance<ExampleConfig> INSTANCE = new GsonConfigInstance<>(ExampleConfig.class, Path.of("./config/yacl-test.json"));

    @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 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
    }
}