aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/test/TestConfig.java
blob: 6de3dea4fb8f4279c818b459cf9b6d0bbced4bd9 (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
package io.polyfrost.oneconfig.test;

import io.polyfrost.oneconfig.config.annotations.Category;
import io.polyfrost.oneconfig.config.annotations.HudComponent;
import io.polyfrost.oneconfig.config.annotations.Switch;
import io.polyfrost.oneconfig.config.annotations.TextField;
import io.polyfrost.oneconfig.config.data.ModData;
import io.polyfrost.oneconfig.config.data.ModType;
import io.polyfrost.oneconfig.config.interfaces.Config;

public class TestConfig extends Config {

    @Switch(name = "Cool Switch")
    public static boolean toggle = false;

    @Category(name = "Cool Category")
    public static class category {
        @TextField(name = "Cool text field")
        public static String text = "Very cool text";
    }

    @HudComponent(name = "text hud")
    public static TestHud testTextHud = new TestHud();

    public TestConfig() {
        super(new ModData("hacks", ModType.QOL, "ShadyDev", "1.0"), "hacksConfig.json");
    }
}