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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
package at.hannibal2.skyhanni.config.features.combat;
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.ConfigEditorColour;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown;
import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
public class FlareConfig {
@Expose
@ConfigOption(name = "Enable", desc = "Show current active flares.")
@ConfigEditorBoolean
@FeatureToggle
public boolean enabled = false;
@Expose
@ConfigOption(name = "Alert Type", desc = "What type of alert should be sent when a flare is about to expire.")
@ConfigEditorDropdown
public AlertType alertType = AlertType.CHAT;
public enum AlertType {
NONE("No alert"),
CHAT("Chat"),
TITLE("Title"),
CHAT_TITLE("Chat & Title"),
;
private final String str;
AlertType(String str) {
this.str = str;
}
@Override
public String toString() {
return str;
}
}
@Expose
@ConfigOption(name = "Display Type", desc = "Where to show the timer.")
@ConfigEditorDropdown
public DisplayType displayType = DisplayType.GUI;
public enum DisplayType {
GUI("GUI Element"),
WORLD("In World"),
BOTH("Both"),
;
private final String str;
DisplayType(String str) {
this.str = str;
}
@Override
public String toString() {
return str;
}
}
@Expose
@ConfigOption(name = "Show Effective Area", desc = "Show the effective area of the flare.")
@ConfigEditorDropdown
public OutlineType outlineType = OutlineType.NONE;
public enum OutlineType {
NONE("No Outline"),
FILLED("Filled"),
WIREFRAME("Wireframe"),
CIRCLE("Circle")
;
private final String str;
OutlineType(String str) {
this.str = str;
}
@Override
public String toString() {
return str;
}
}
@Expose
@ConfigOption(name = "Warning Flare Color", desc = "Color for Warning Flare.")
@ConfigEditorColour
public String warningColor = "0:153:29:255:136";
@Expose
@ConfigOption(name = "Alert Flare Color", desc = "Color for Alert Flare.")
@ConfigEditorColour
public String alertColor = "0:153:0:159:137";
@Expose
@ConfigOption(name = "SOS Flare Color", desc = "Color for SOS Flare.")
@ConfigEditorColour
public String sosColor = "0:153:159:0:5";
@Expose
@ConfigLink(owner = FlareConfig.class, field = "enabled")
public Position position = new Position(150, 200, false, true);
@Expose
@ConfigOption(name = "Show Buff", desc = "Show the mana regen buff next to the flare name.")
@ConfigEditorBoolean
public boolean showManaBuff = false;
@Expose
@ConfigOption(name = "Hide particles", desc = "Hide flame particles spawning around the flare.")
@ConfigEditorBoolean
public boolean hideParticles = false;
}
|