aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Misc.java
blob: 5ad0588dee8049291845b3a63d8efbd76b148da8 (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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
/*
 * Copyright (C) 2022-2024 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.ConfigEditorButton;
import io.github.moulberry.moulconfig.annotations.ConfigEditorDropdown;
import io.github.moulberry.moulconfig.annotations.ConfigEditorKeybind;
import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider;
import io.github.moulberry.moulconfig.annotations.ConfigOption;
import org.lwjgl.input.Keyboard;

public class Misc {
	@Expose
	@ConfigOption(
		name = "Only Show on SkyBlock",
		desc = "The item list and some other GUI elements will only show on SkyBlock"
	)
	@ConfigEditorBoolean
	public boolean onlyShowOnSkyblock = true;

	@Expose
	@ConfigOption(
		name = "Hide Potion Effects",
		desc = "Hide the potion effects inside your inventory while on SkyBlock"
	)
	@ConfigEditorBoolean
	public boolean hidePotionEffect = true;

	@Expose
	@ConfigOption(
		name = "Streamer Mode",
		desc = "Randomize lobby names in the scoreboard and chat messages to help prevent stream sniping"
	)
	@ConfigEditorBoolean
	public boolean streamerMode = false;

	@Expose
	@ConfigOption(
		name = "Fix Steve skulls",
		desc = "Fix some skulls and skins not downloading on old java versions. May require restart."
	)
	@ConfigEditorBoolean
	public boolean fixSteveSkulls = true;

	@ConfigOption(
		name = "Fairy Soul Waypoints",
		desc = ""
	)
	@ConfigEditorAccordion(id = 0)
	public boolean fariySoulAccordion = false;
	@Expose
	@ConfigOption(
		name = "Track Fairy Souls",
		desc = "Track Found Fairy Souls"
	)
	@ConfigEditorBoolean(runnableId = 20)
	@ConfigAccordionId(id = 0)
	public boolean trackFairySouls = true;

	@Expose
	@ConfigOption(
		name = "Show Waypoints",
		desc = "Show Fairy Soul Waypoints (Requires fairy soul tracking)"
	)
	@ConfigEditorBoolean(
		runnableId = 15
	)
	@ConfigAccordionId(id = 0)
	public boolean fariySoul = false;

	@Expose
	@ConfigOption(
		name = "Show Waypoint Distance",
		desc = "Show the distance to each fairy soul waypoint"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 0)
	public boolean fairySoulWaypointDistance = false;

	@Expose
	@ConfigOption(
		name = "Mark All As Found",
		desc = "Mark all fairy souls in current location as found"
	)
	@ConfigEditorButton(
		runnableId = 16,
		buttonText = "Clear"
	)
	@ConfigAccordionId(id = 0)
	public boolean fariySoulClear = false;

	@Expose
	@ConfigOption(
		name = "Mark All As Missing",
		desc = "Mark all fairy souls in current location as missing"
	)
	@ConfigEditorButton(
		runnableId = 17,
		buttonText = "Unclear"
	)
	@ConfigAccordionId(id = 0)
	public boolean fariySoulUnclear = false;

	@Expose
	@ConfigOption(
		name = "GUI Click Sounds",
		desc = "Play click sounds in various NEU-related GUIs when pressing buttons"
	)
	@ConfigEditorBoolean
	public boolean guiButtonClicks = true;

	@Expose
	@ConfigOption(
		name = "Replace Chat Social Options",
		desc = "Replace Hypixel's chat social options with NEU's profile viewer or with /ah"
	)
	@ConfigEditorDropdown(
		values = {"Off", "/pv", "/ah"}
	)
	public int replaceSocialOptions1 = 1;

	@Expose
	@ConfigOption(
		name = "Damage Indicator Style",
		desc = "Change SkyBlock damage indicators to use shortened numbers\n" +
			"\u00A7cSome old animations mods break this feature"
	)
	@ConfigEditorBoolean
	public boolean damageIndicatorStyle2 = false;

	@Expose
	@ConfigOption(
		name = "Profile Viewer",
		desc = "Brings up the profile viewer (/pv)\n" +
			"Shows stats and networth of players"
	)
	@ConfigEditorButton(runnableId = 13, buttonText = "Open")
	public boolean openPV = true;

	@ConfigOption(
		name = "Custom Enchant Colours",
		desc = ""
	)
	@ConfigEditorAccordion(
		id = 1
	)
	public boolean neuEnchantsAccordion = true;

	@Expose
	@ConfigOption(
		name = "Edit Enchant Colours",
		desc = "Change the colours of certain SkyBlock enchants (/neuec)"
	)
	@ConfigEditorButton(runnableId = 8, buttonText = "Open")
	@ConfigAccordionId(id = 1)
	public boolean editEnchantColoursButton = true;

	@Expose
	@ConfigOption(
		name = "Chroma Text Speed",
		desc = "Change the speed of chroma text for items names (/neucustomize) and enchant colours (/neuec) with the chroma colour code (&z)"
	)
	@ConfigEditorSlider(
		minValue = 10,
		maxValue = 500,
		minStep = 10
	)
	@ConfigAccordionId(id = 1)
	public int chromaSpeed = 100;

	@Expose
	@ConfigOption(
		name = "Cache Tooltip Enchants",
		desc = "Caches item enchants in tooltip to only use the neuec config once per item lookup."
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 1)
	public boolean cacheItemEnchant = true;

	@Expose
	@ConfigOption(
		name = "Disable Skull retexturing",
		desc = "Disables the skull retexturing."
	)
	@ConfigEditorBoolean
	public boolean disableSkullRetexturing = false;

	@Expose
	@ConfigOption(
		name = "Disable NPC retexturing",
		desc = "Disables the NPC retexturing."
	)
	@ConfigEditorBoolean
	public boolean disableNPCRetexturing = false;

	@Expose
	@ConfigOption(
		name = "Wiki",
		desc = "The wiki to use in the wiki renderer."
	)
	@ConfigEditorDropdown(values = {
		"Hypixel",
		"Fandom"
	})
	public int wiki = 0;

	@Expose
	@ConfigOption(
		name = "Waypoint Keybind",
		desc = "Press this keybind to show waypoints to various NPCs"
	)
	@ConfigEditorKeybind(defaultKey = Keyboard.KEY_NONE)
	public int keybindWaypoint = Keyboard.KEY_NONE;

	@Expose
	@ConfigOption(
		name = "Untrack close Waypoints",
		desc = "Automatically untrack waypoints once you get close to them."
	)
	@ConfigEditorBoolean
	public boolean untrackCloseWaypoints = true;

	@Expose
	@ConfigOption(
		name = "Warp twice",
		desc = "Warp twice when using SHIFT+<waypoint keybind> to /warp to a waypoint."
	)
	@ConfigEditorBoolean
	public boolean warpTwice = true;

	@Expose
	@ConfigOption(
		name = "Calculator",
		desc = "Replace calculations like §9\"1+2\"§7 with the calculation result in sign popups (AH/BZ) and in the neu search bar"
	)
	@ConfigEditorDropdown(values = {"Off", "Enabled with ! Prefix", "Always enabled"})
	public int calculationMode = 2;

	@Expose
	@ConfigOption(
		name = "Calculator Precision",
		desc = "Digits after the , to display in the calculator"
	)
	@ConfigEditorSlider(
		minValue = 1,
		maxValue = 100,
		minStep = 1
	)
	public int calculationPrecision = 5;

	@Expose
	@ConfigOption(
		name = "Enable Abiphone Warning",
		desc = "Asks for confirmation when removing a contact in the abiphone"
	)
	@ConfigEditorBoolean
	public boolean abiphoneWarning = true;

	@Expose
	@ConfigOption(
		name = "Enable Coop Warning",
		desc = "Asks for confirmation when clicking the coop diamond in profile menu and prevents 'wrong' /coopadd commands"
	)
	@ConfigEditorBoolean
	public boolean coopWarning = true;

	@Expose
	@ConfigOption(
		name = "Filter Skyblock Levels in Chat",
		desc = "Requires the \"SkyBlock Levels in Chat\" skyblock setting to be on"
	)
	@ConfigEditorSlider(
		minValue = 0,
		maxValue = 300,
		minStep = 10
	)
	public int filterChatLevel = 0;

	@Expose
	@ConfigOption(
		name = "Enable text field tweaks",
		desc = "Allows the use of ctrl + z, ctrl + y and ctrl + Lshift + z in text fields"
	)
	@ConfigEditorBoolean
	public boolean textFieldTweaksEnabled = true;

	@Expose
	@ConfigOption(
		name = "Abiphone Favourites",
		desc = "Allows to set abiphone contacts as favourites, toggle between displaying all contacts or favourites only and deactivates the option to remove contacts at all."
	)
	@ConfigEditorBoolean
	public boolean abiphoneFavourites = true;

	@Expose
	@ConfigOption(
		name = "Group Join PV",
		desc = "View another player's profile by clicking on the chat message when they join in a dungeon or kuudra group."
	)
	@ConfigEditorBoolean
	public boolean dungeonGroupsPV = true;

	@Expose
	@ConfigOption(
		name = "Old SkyBlock Menu",
		desc = "Show old buttons in the SkyBlock Menu: Trade, Accessories, Potions, Quiver, Fishing and Sacks. " +
			"§cOnly works with the booster cookie effect active."
	)
	@ConfigEditorBoolean
	public boolean