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
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
|
package io.github.moulberry.notenoughupdates.options;
import com.google.gson.*;
import io.github.moulberry.notenoughupdates.GuiEnchantColour;
import io.github.moulberry.notenoughupdates.NEUOverlayPlacements;
import io.github.moulberry.notenoughupdates.NotEnoughUpdates;
import io.github.moulberry.notenoughupdates.mbgui.MBAnchorPoint;
import io.github.moulberry.notenoughupdates.util.SpecialColour;
import io.github.moulberry.notenoughupdates.util.Utils;
import net.minecraft.client.Minecraft;
import net.minecraft.util.Util;
import net.minecraftforge.client.ClientCommandHandler;
import net.minecraftforge.client.ForgeHooksClient;
import org.lwjgl.util.vector.Vector2f;
import java.awt.*;
import java.io.*;
import java.lang.reflect.Field;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Options {
/**
* Ok, I'll be honest. I wrote this class without looking too much in to how to make proper serializable
* variables with defaults values/etc. It works. I'm happy.
*/
public static final transient int FLAG_COLOUR = 0b1;
public Option<Boolean> enableItemEditing = new Option(
false,
"Enable Item Editing",
true,
"Dev Feature.");
public Option<Boolean> onlyShowOnSkyblock = new Option(
true,
"Only Show On Skyblock",
false,
"NEU Overlay only appears when you are playing Skyblock.");
public Option<Boolean> showVanillaItems = new Option(
true,
"Show Vanilla Items",
false,
"Shows vanilla items in the itemlist.");
public Option<Boolean> hidePotionEffect = new Option(
true,
"Hide Potion Effects",
false,
"Potion effects are hidden in the inventory GUI. Contrib: All the gamers that play on GUI AUTO");
public Option<Boolean> showQuickCommands = new Option(
true,
"Quick Commands",
false,
"Shows QuickCommands\u2122 above search bar.");
public Option<Boolean> showUpdateMsg = new Option(
true,
"Show Update Notifs",
false,
"Shows update messages if NEU is out-of-date.");
public Option<Boolean> tooltipBorderColours = new Option(
true,
"Coloured Tooltip Borders",
false,
"Makes the border of tooltips coloured. (Only NEU Tooltips)");
public Option<Boolean> disableAhScroll = new Option(
false,
"No NeuAH Scroll",
false,
"Disables Scrolling in NeuAH");
public Option<Boolean> advancedPriceInfo = new Option(
false,
"Adv. Item Price Info",
false,
"Shows some extra information about item prices.");
public Option<Boolean> cacheRenderedItempane = new Option(
true,
"Cache Itempane",
false,
"Caches the drawn itempane, drastically improving performance. Animated textures will not work.");
public Option<Boolean> streamerMode = new Option(
false,
"Streamer Mode",
false,
"Hides or randomises some stuff on your screen to prevent sniping.");
public Option<Boolean> disableTreecapOverlay = new Option(
false,
"Disable Treecap Overlay",
false,
"Disables the treecapitator overlay effect.");
public Option<Boolean> hideApiKey = new Option(
false,
"Hide Apikey Setting",
false,
"Hides the Apikey setting (please try not to leak Apikey if you're recording)");
public Option<Double> bgBlurFactor = new Option(
5.0,
"Background Blur",
false,
"Changes the strength of pane background blur. 0-50.", 0, 50);
public Option<String> apiKey = new Option(
"",
"Api Key",
false,
"Type /api new to receive key and put it here.");
public Option<Boolean> autoupdate = new Option(
true,
"Automatically Update Items",
false,
"If true, updated items will automatically download from the remote repository when you start the game. \nHIGHLY RECOMMENDED.");
public Option<Boolean> quickcommandMousePress = new Option(
false,
"QuickCommand on Mouse Press",
false,
"If true, quickcommands will trigger on mouse down instead of mouse up.");
public Option<Boolean> disableItemTabOpen = new Option(
false,
"No Tab Open",
false,
"If True, moving your mouse to the item tab on the right side won't open the itempane.");
public Option<Boolean> keepopen = new Option(
false,
"Keep Itempane Open",
false,
"If true, the itempane will stay open after the gui is closed.");
public Option<Boolean> itemStyle = new Option(
true,
"Circular Item Style",
false,
"Uses the circular item background style instead of the square style. Contrib: Calyps0");
public Option<Boolean> hideEmptyPanes = new Option(
true,
"Hide GUI Filler Tooltips",
false,
"Hides the tooltip of glass panes in skyblock GUIs. Contrib: ThatGravyBoat");
public Option<Boolean> dungeonProfitLore = new Option(
false,
"Dungeon Profit in Lore",
false,
"If true, will show the dungeon profit on the tooltip of the 'reward chest' instead of as a GUI.");
public Option<Boolean> auctionPriceInfo = new Option(
true,
"Price Info in Auction Lore",
false,
"If true, will show price information about an item inside the auction house item tooltip.");
public Option<Boolean> useCustomTrade = new Option(
true,
"Custom Trade",
false,
"If true, uses the custom trade window for skyblock trades.");
public Option<Boolean> invBazaarPrice = new Option(
false,
"Show Bazaar Price In Inventory",
false,
"If true, shows the bazaar price for the item you hover in your inventory.");
public Option<Boolean> invAuctionPrice = new Option(
false,
"Show Auction Price In Inventory",
false,
"If true, shows the auction price for the item you hover in your inventory.");
public Option<Boolean> dungeonBlocksEverywhere = new Option(
false,
"Show Dungeon Block Overlay Everywhere",
false,
"If true, will show the overlay for cracked bricks, etc. even when not in dungeons.");
public Option<Boolean> disableDungeonBlocks = new Option(
false,
"Disables the dungeon blocks feature",
false,
"If true, the dungeon block overlay will be disabled.");
public Option<Double> paneWidthMult = new Option(
1.0,
"Pane Width",
false,
"Changes how wide the item and info panes are. Value between 0.5-1.5.", 0.5, 1.5);
public Option<Double> smoothAoteMillis = new Option(
175.0,
"Smooth AOTE Milliseconds",
false,
"How long teleporting with the AOTE takes. 0 = disable.", 0, 300);
public Option<Double> itemHighlightOpacity = new Option(
178.0,
"Item Highlight Opacity",
false,
"Changes the opacity of item highlights. Value between 0-255.", 0, 255);
public Option<Double> panePadding = new Option(
10.0,
"Pane Padding",
false,
"Changes the padding of the panes. Value between 0-20.", 0, 20);
public Option<Double> ahNotification = new Option(
2.0,
"AH Notification (Mins, 0 = off)",
false,
"Minutes before AH ends to notify. 0-10.", 0, 10);
public Option<Double> tooltipBorderOpacity = new Option(
200.0,
"Coloured Tooltip Border Opacity",
false,
"Coloured tooltips only apply to tooltips in my GUIs. Value between 0-255.", 0, 255);
public Option<Double> dynamicMenuBackgroundStyle = new Option(
1.0,
"SBMenu Background Style",
false,
"Style of the background used for the skyblock menu.", 0, 10);
public Option<Double> dynamicMenuButtonStyle = new Option(
1.0,
"SBMenu Button Style",
|