-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathLogMasterConfig.java
More file actions
160 lines (144 loc) · 4.41 KB
/
LogMasterConfig.java
File metadata and controls
160 lines (144 loc) · 4.41 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
package com.logmaster;
import com.logmaster.domain.DynamicTaskImages;
import com.logmaster.domain.TaskTier;
import net.runelite.client.config.*;
import static com.logmaster.LogMasterConfig.CONFIG_GROUP;
@ConfigGroup(CONFIG_GROUP)
public interface LogMasterConfig extends Config
{
String CONFIG_GROUP = "log-master";
String PLUGIN_VERSION_KEY = "plugin-version";
String IS_COMMAND_ENABLED_KEY = "isCommandEnabled";
String REROLLS_ENABLED_KEY = "rerollsEnabled";
@Range(
min = 1000,
max = 10000
)
@Units(Units.MILLISECONDS)
@ConfigItem(
keyName = "rollTime",
name = "Roll Time",
description = "How long new tasks will take to roll",
position = 1
)
default int rollTime()
{
return 5000;
}
@ConfigItem(
keyName = "rollPastCompleted",
name = "Roll past completed",
description = "When rolling tasks, include those you've already completed in the roll animation. Helpful when you're getting to the end of a tier!",
position = 2
)
default boolean rollPastCompleted()
{
return false;
}
@ConfigItem(
keyName = "hideBelow",
name = "Hide Tasks Below",
description = "Disabled the showing up/assigning of tasks at or below the specified tier",
position = 3
)
default TaskTier hideBelow()
{
return TaskTier.EASY;
}
@ConfigItem(
keyName = "displayCurrentTaskOverlay",
name = "Display current task overlay",
description = "Enable an overlay showing the currently assigned task (when one exists)",
position = 5
)
default boolean displayCurrentTaskOverlay()
{
return true;
}
@ConfigItem(
keyName = "dynamicTaskImages",
name = "Dynamic task images",
description = "Display dynamic task images based on required/acquired items",
position = 6
)
default DynamicTaskImages dynamicTaskImages()
{
return DynamicTaskImages.NONE;
}
@ConfigSection(
name = "!taskman Command",
description = "Configuration options for the !taskman command",
position = 7
)
String command = "command";
@ConfigItem(
keyName = IS_COMMAND_ENABLED_KEY,
name = "Enable command",
description = "When you or others type !taskman in the chat, it will be replaced by your current task status",
warning = "Enabling this feature submits your IP address to a server not controlled or verified by the RuneLite developers.",
section = command,
position = 0
)
default boolean isCommandEnabled()
{
return false;
}
@ConfigItem(
keyName = "isCommandReminderEnabled",
name = "Enable reminder",
description = "Reminds you to enable commands in case you forgot",
section = command,
position = 1
)
default boolean isCommandReminderEnabled()
{
return true;
}
@ConfigSection(
name = "Unofficial taskman config",
description = "Configuration options for unofficial taskman",
position = 20
)
String unofficial = "unofficial";
@ConfigItem(
keyName = REROLLS_ENABLED_KEY,
name = "Re-rolls enabled",
description = "Do you want re-rolls enabled? when enabled, current re-roll count will be set to the increment amount.",
section = unofficial,
position = 1
)
default boolean rerollsEnabled()
{
return false;
}
@ConfigItem(
keyName = "rerollMaximum",
name = "Re-rolls maximum",
description = "Maximum amount of re-rolls you can have.",
section = unofficial,
position = 2
)
@Range(
min = 1,
max = 10000
)
default int rerollsMaximum()
{
return 3;
}
@ConfigItem(
keyName = "rerollIncrement",
name = "Re-roll increment",
description = "How many re-rolls you want to gain per task completion. Set to 0 to restore to full.",
section = unofficial,
position = 3
)
@Range(
min = 0,
max = 10000
)
default int rerollsIncrement()
{
return 0;
}
}