blob: b0282ae5bcab847c310221b9b9e0754ecdc88d8a (
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
|
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();
@HudComponent(name = "text hud v2")
public static TestHud testTextHud2 = new TestHud();
public TestConfig() {
super(new ModData("hacks", ModType.QOL, "ShadyDev", "1.0"), "hacksConfig.json");
}
}
|