summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features/gui/InGameDateConfig.java
blob: 4e9b34e55eadbd39a9277c12fe17d9ff54992c4c (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package at.hannibal2.skyhanni.config.features.gui;

import at.hannibal2.skyhanni.config.FeatureToggle;
import at.hannibal2.skyhanni.config.core.config.Position;
import com.google.gson.annotations.Expose;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider;
import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;

public class InGameDateConfig {

    @Expose
    @ConfigOption(
        name = "Enabled",
        desc = "Show the in-game date of SkyBlock (like in Apec, §ebut with mild delays§7).\n" +
            "(Though this one includes the SkyBlock year!)"
    )
    @ConfigEditorBoolean
    @FeatureToggle
    public boolean enabled = false;

    @Expose
    @ConfigLink(owner = InGameDateConfig.class, field = "enabled")
    public Position position = new Position(10, 10, false, true);

    @Expose
    @ConfigOption(
        name = "Use Scoreboard for Date",
        desc = "Uses the scoreboard instead to find the current month, date, and time. Greater \"accuracy\", depending on who's asking."
    )
    @ConfigEditorBoolean
    @FeatureToggle
    public boolean useScoreboard = true;

    @Expose
    @ConfigOption(
        name = "Show Sun/Moon",
        desc = "Show the sun or moon symbol seen on the scoreboard."
    )
    @ConfigEditorBoolean
    @FeatureToggle
    public boolean includeSunMoon = true;

    @Expose
    @ConfigOption(
        name = "Show Date Ordinal",
        desc = "Show the date's ordinal suffix. Ex: (1st <-> 1, 22nd <-> 22, 23rd <-> 3, 24th <-> 24, etc.)"
    )
    @ConfigEditorBoolean
    public boolean includeOrdinal = false;

    @Expose
    @ConfigOption(
        name = "Refresh Rate",
        desc = "Change the time in seconds you would like to refresh the In-Game Date Display." +
            "\n§eNOTE: If \"Use Scoreboard for Date\" is enabled, this setting is ignored."
    )
    @ConfigEditorSlider(
        minValue = 1,
        maxValue = 60,
        minStep = 1
    )
    public int refreshSeconds = 30;
}