aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Fishing.java
blob: 48b0661d85c19cdf4e01732a73e88cce1c1803c2 (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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
/*
 * Copyright (C) 2022 NotEnoughUpdates contributors
 *
 * This file is part of NotEnoughUpdates.
 *
 * NotEnoughUpdates is free software: you can redistribute it
 * and/or modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 *
 * NotEnoughUpdates is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with NotEnoughUpdates. If not, see <https://www.gnu.org/licenses/>.
 */

package io.github.moulberry.notenoughupdates.options.separatesections;

import com.google.gson.annotations.Expose;
import io.github.moulberry.moulconfig.annotations.ConfigAccordionId;
import io.github.moulberry.moulconfig.annotations.ConfigEditorAccordion;
import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean;
import io.github.moulberry.moulconfig.annotations.ConfigEditorColour;
import io.github.moulberry.moulconfig.annotations.ConfigEditorDropdown;
import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider;
import io.github.moulberry.moulconfig.annotations.ConfigOption;

public class Fishing {
	@Expose
	@ConfigOption(
		name = "Hide Other Players Fishing",
		desc = "Convenience option to easily hide \u00a7lother players'\u00a7r bobbers, rod lines and fishing particles\n" +
			"The advanced options below allow you to set the precise colour, particles, etc."
	)
	@ConfigEditorBoolean
	public boolean hideOtherPlayerAll = false;

	@ConfigOption(
		name = "Incoming Fish Warning",
		desc = ""
	)
	@ConfigEditorAccordion(id = 3)
	public boolean incomingFishAccordion = false;

	@Expose
	@ConfigOption(
		name = "Enable Fish Warning (R)",
		desc = "Display a red '!' when you need to pull the fish up. The warning takes your ping into account"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 3)
	public boolean incomingFishWarningR = true;

	@Expose
	@ConfigOption(
		name = "Enable Fish Warning (Y)",
		desc = "Display a yellow '!' when a fish is approaching your bobber"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 3)
	public boolean incomingFishWarning = true;

	@Expose
	@ConfigOption(
		name = "Enable Hooked Sound",
		desc = "Play a high-pitched ding sound when the '!' turns red"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 3)
	public boolean incomingFishHookedSounds = true;

	@Expose
	@ConfigOption(
		name = "Enable Approach Sound",
		desc = "Play low-pitched ding sounds while the yellow '!' is visible"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 3)
	public boolean incomingFishIncSounds = false;

	@ConfigOption(
		name = "Volumes",
		desc = ""
	)
	@ConfigAccordionId(id = 3)
	@ConfigEditorAccordion(id = 5)
	public boolean incomingFishVolumeAccordion = false;

	@Expose
	@ConfigOption(
		name = "Hooked Sound Vol.",
		desc = "Set the volume of the hooked sound"
	)
	@ConfigEditorSlider(
		minValue = 0,
		maxValue = 100,
		minStep = 1
	)
	@ConfigAccordionId(id = 5)
	public float incomingFishHookedSoundsVol = 25;

	@Expose
	@ConfigOption(
		name = "Approach Sound Vol.",
		desc = "Set the volume of the approaching sound"
	)
	@ConfigEditorSlider(
		minValue = 0,
		maxValue = 100,
		minStep = 1
	)
	@ConfigAccordionId(id = 5)
	public float incomingFishIncSoundsVol = 10;

	@ConfigOption(
		name = "Fishing Particles",
		desc = ""
	)
	@ConfigEditorAccordion(id = 0)
	public boolean particleAccordion = false;

	@Expose
	@ConfigOption(
		name = "Enable Custom Particles",
		desc = "Allow you to modify the particles that appear when a fish is incoming for you and other players"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 0)
	public boolean enableCustomParticles = false;

	@ConfigOption(
		name = "Your Particles",
		desc = ""
	)
	@ConfigEditorAccordion(id = 1)
	@ConfigAccordionId(id = 0)
	public boolean yourParticlesAccordion = false;

	@Expose
	@ConfigOption(
		name = "Particle Type",
		desc = "Change the type of the particle that is spawned\n" +
			"Particle types with (RGB) support custom colours\n" +
			"Set to 'NONE' to disable particles"
	)
	@ConfigEditorDropdown(
		values = {"Default", "None", "Spark (RGB)", "Swirl (RGB)", "Dust (RGB)", "Flame", "Crit", "Magic Crit"}
	)
	@ConfigAccordionId(id = 1)
	public int yourParticleType = 0;

	@Expose
	@ConfigOption(
		name = "Custom Colour",
		desc = "Set a custom colour for the particle\n" +
			"Only works for particle types with (RGB)"
	)
	@ConfigEditorColour
	@ConfigAccordionId(id = 1)
	public String yourParticleColour = "0:255:255:255:255";

	@ConfigOption(
		name = "Other Players' Particles",
		desc = ""
	)
	@ConfigEditorAccordion(id = 2)
	@ConfigAccordionId(id = 0)
	public boolean otherParticlesAccordion = false;

	@Expose
	@ConfigOption(
		name = "Particle Type",
		desc = "Change the type of the particle that is spawned\n" +
			"Particle types with (RGB) support custom colours\n" +
			"Set to 'NONE' to disable particles"
	)
	@ConfigEditorDropdown(
		values = {"Default", "None", "Spark (RGB)", "Swirl (RGB)", "Dust (RGB)", "Flame", "Crit", "Magic Crit"}
	)
	@ConfigAccordionId(id = 2)
	public int otherParticleType = 0;

	@Expose
	@ConfigOption(
		name = "Custom Colour",
		desc = "Set a custom colour for the particle\n" +
			"Only works for particle types with (RGB)"
	)
	@ConfigEditorColour
	@ConfigAccordionId(id = 2)
	public String otherParticleColour = "0:255:255:255:255";

	@ConfigOption(
		name = "Rod Line Colours",
		desc = ""
	)
	@ConfigEditorAccordion(id = 4)
	public boolean rodAccordion = false;

	@Expose
	@ConfigOption(
		name = "Enable Rod Line Colours",
		desc = "Change the colour of your and other players' rod lines\n" +
			"Also fixes the position of the rod line"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 4)
	public boolean enableRodColours = true;

	@Expose
	@ConfigOption(
		name = "Own Rod Colour",
		desc = "Change the colour of your own rod lines\n" +
			"You can set the opacity to '0' to HIDE"
	)
	@ConfigEditorColour
	@ConfigAccordionId(id = 4)
	public String ownRodColour = "0:255:0:0:0";

	@Expose
	@ConfigOption(
		name = "Other Rod Colour",
		desc = "Change the colour of other players' rod lines\n" +
			"You can set the opacity to '0' to HIDE"
	)
	@ConfigEditorColour
	@ConfigAccordionId(id = 4)
	public String otherRodColour = "0:255:0:0:0";

	@ConfigOption(
		name = "Fishing Timer",
		desc = ""
	)
	@ConfigEditorAccordion(id = 6)
	public boolean fishingAccordion = false;

	@Expose
	@ConfigOption(
		name = "Display a Fishing Timer",
		desc = "Display a timer above your bobber showing your current time"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 6)
	public boolean fishingTimer = false;

	@Expose
	@ConfigOption(
		name = "Fishing timer colour",
		desc = "Colour of the fishing timer"
	)
	@ConfigEditorColour
	@ConfigAccordionId(id = 6)
	public String fishingTimerColor = "0:255:0:0:0";

	@Expose
	@ConfigOption(
		name = "Fishing timer colour (20s)",
		desc = "Colour of the fishing timer after 20 seconds or more have passed"
	)
	@ConfigEditorColour
	@ConfigAccordionId(id = 6)
	public String fishingTimerColor30SecPlus = "0:255:0:0:0";

	@Expose
	@ConfigOption(
		name = "Fishing timer ping (20s)",
		desc = "Play a sound after 20 seconds passed"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 6)
	public boolean fishingSound30Sec = true;

	@Expose
	@ConfigOption(
		name = "Enable Slug Pet Check",
		desc = "Check what pet you're using to determine the cooldown for the fishing timer colour/ping"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 6)
	public boolean enableSlugCheck = true;

	@ConfigOption(
		name = "Trophy Reward",
		desc = ""
	)
	@ConfigEditorAccordion(id = 7)
	public boolean trophyReward = false;

	@Expose
	@ConfigOption(
		name = "Trophy Reward Overlay",
		desc = "Displays an overlay at Odger that shows information about your trophies"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 7)
	public boolean trophyRewardOverlay = true;

	@Expose
	@ConfigOption(
		name = "Trophy Reward Tooltips",
		desc = "Displays the exchange of your trophies as a tooltip in the Odger Inventory"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 7)
	public boolean trophyRewardTooltips = true;

}