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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
package at.hannibal2.skyhanni.config.features.combat;
import at.hannibal2.skyhanni.config.FeatureToggle;
import at.hannibal2.skyhanni.config.HasLegacyId;
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.ConfigEditorDropdown;
import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
public class BestiaryConfig {
@Expose
@ConfigOption(name = "Enable", desc = "Show Bestiary Data overlay in the Bestiary menu.")
@ConfigEditorBoolean
@FeatureToggle
public boolean enabled = false;
@Expose
@ConfigOption(name = "Number format", desc = "Short: 1.1k\nLong: 1.100")
@ConfigEditorDropdown
public NumberFormatEntry numberFormat = NumberFormatEntry.SHORT;
public enum NumberFormatEntry implements HasLegacyId {
SHORT("Short", 0),
LONG("Long", 1);
private final String str;
private final int legacyId;
NumberFormatEntry(String str, int legacyId) {
this.str = str;
this.legacyId = legacyId;
}
// Constructor if new enum elements are added post-migration
NumberFormatEntry(String str) {
this(str, -1);
}
@Override
public int getLegacyId() {
return legacyId;
}
@Override
public String toString() {
return str;
}
}
@Expose
@ConfigOption(name = "Display type", desc = "Choose what the display should show")
@ConfigEditorDropdown
public DisplayTypeEntry displayType = DisplayTypeEntry.GLOBAL_MAX;
public enum DisplayTypeEntry implements HasLegacyId {
GLOBAL_MAX("Global to max", 0),
GLOBAL_NEXT("Global to next tier", 1),
LOWEST_TOTAL("Lowest total kills", 2),
HIGHEST_TOTAL("Highest total kills", 3),
LOWEST_MAX("Lowest kills needed to max", 4),
HIGHEST_MAX("Highest kills needed to max", 5),
LOWEST_NEXT("Lowest kills needed to next tier", 6),
HIGHEST_NEXT("Highest kills needed to next tier", 7);
private final String str;
private final int legacyId;
DisplayTypeEntry(String str, int legacyId) {
this.str = str;
this.legacyId = legacyId;
}
// Constructor if new enum elements are added post-migration
DisplayTypeEntry(String str) {
this(str, -1);
}
@Override
public int getLegacyId() {
return legacyId;
}
@Override
public String toString() {
return str;
}
}
@Expose
@ConfigOption(name = "Hide maxed", desc = "Hide maxed mobs.")
@ConfigEditorBoolean
public boolean hideMaxed = false;
@Expose
@ConfigOption(name = "Replace Romans", desc = "Replace Roman numerals (IX) with regular numbers (9)")
@ConfigEditorBoolean
public boolean replaceRoman = false;
@Expose
@ConfigLink(owner = BestiaryConfig.class, field = "enabled")
public Position position = new Position(100, 100, false, true);
}
|