aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java
blob: 3f1506921578401dd84fb0d42265f5cd98ba9b69 (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 club.sk1er.vigilance.Vigilant;
import club.sk1er.vigilance.data.Property;
import club.sk1er.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();
    }
}