aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java
blob: dd10623cc7be9f99eca228747d76e79b1caa71e1 (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
39
40
41
42
package me.djtheredstoner.perspectivemod.config;

import gg.essential.vigilance.Vigilant;
import gg.essential.vigilance.data.Property;
import gg.essential.vigilance.data.PropertyType;

import java.io.File;

public class PerspectiveModConfig extends Vigilant {

    @Property(
        type = PropertyType.SWITCH,
        name = "Perspective Mod",
        category = "General",
        subcategory = "General",
        description = "Toggle Perspective Mod entirely."
    )
    public boolean modEnabled = true;

    @Property(
        type = PropertyType.SWITCH,
        name = "Hold Mode",
        category = "General",
        subcategory = "General",
        description = "Return to normal perspective after releasing keybind."
    )
    public boolean holdMode = true;

    @Property(
        type = PropertyType.SWITCH,
        name = "Invert Pitch",
        category = "General",
        subcategory = "General",
        description = "Invert the pitch while in perspective (same as blc/lunar)."
    )
    public boolean invertPitch = false;

    public PerspectiveModConfig() {
        super(new File("./config/perspectivemodv4.toml"));
        initialize();
    }
}