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
|
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.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 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> 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™ 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> 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> hideApiKey = new Option(
false,
"Hide Apikey Setting",
false,
"Hides the Apikey setting (please try not to leak Apikey if you're recording)");
public Option<Boolean> quickAHUpdate = new Option(
false,
"NeuAH Quick Update",
false,
"Will instantly update the whole AH when an api update is detected (aka as fast as possible). Warning: Uses lots of data.");
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<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> bgOpacity = new Option(
30.0,
"Pane Background Opacity",
false,
"Changes the background colour opacity of item and info panes. Value between 0-255.", 0, 255);
public Option<Double> fgOpacity = new Option(
255.0,
"Item Background Opacity",
false,
"Changes the opacity of item background. Value between 0-255.", 0, 255);
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);
/**
* OPTIONS THAT DON'T SHOW IN GUI
*/
public Option<Boolean> dev = new Option(
false,
"Show Dev Options",
true,
"Dev Feature. Please don't use.");
public Option<String> selectedCape = new Option(
"",
"Selected Cape",
true,
"Selected Cape");
public Option<Double> compareMode = new Option(
0.0,
"Compare Mode",
false,
"Compare Mode");
public Option<Double> sortMode = new Option(
0.0,
"Sort Mode",
false,
"Sort Mode");
public Option<ArrayList<Boolean>> compareAscending = new Option(
Utils.createList(true, true, true),
"Compare Ascending",
false,
"Compare Ascending");
public Option<ArrayList<String>> favourites = new Option(
new ArrayList<String>(),
"Favourites",
false,
"Favourites");
public Option<Map<String, ArrayList<String>>> collectionLog = new Option(
new HashMap<String, ArrayList<String>>(),
"CollectionLog",
false,
"CollectionLog");
public Option<ArrayList<String>> quickCommands = new Option(
createDefaultQuickCommands(),
"Quick Commands",
false,
"Quick Commands");
public Option<String> overlaySearchBar = new Option(
"",
"OverlaySearchBar",
false,
"OverlaySearchBar");
public Option<String> overlayQuickCommand = new Option(
"",
"OverlaySearchBar",
false,
"OverlaySearchBar");
public Option<List<String>> enchantColours = new Option(
Utils.createList("[a-zA-Z ]+:\u003e:9:6",
"[a-zA-Z ]+:\u003e:6:c",
"[a-zA-Z ]+:\u003e:5:5",
"Experience:\u003e:3:5",
"Life Steal:\u003e:3:5",
"Scavenger:\u003e:3:5",
"Looting:\u003e:3:5"),
"enchantColours",
false,
"enchantColours");
private ArrayList<String> createDefaultQuickCommands() {
ArrayList<String> arr = new ArrayList<>();
arr.add("/warp home:Warp Home:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzljODg4MWU0MjkxNWE5ZDI5YmI2MWExNmZiMjZkMDU5OTEzMjA0ZDI2NWRmNWI0MzliM2Q3OTJhY2Q1NiJ9fX0=");
arr.add("/warp hub:Warp Hub:eyJ0aW1lc3RhbXAiOjE1NTkyMTU0MTY5MDksInByb2ZpbGVJZCI6IjQxZDNhYmMyZDc0OTQwMGM5MDkwZDU0MzRkMDM4MzFiIiwicHJvZmlsZU5hbWUiOiJNZWdha2xvb24iLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlL2Q3Y2M2Njg3NDIzZDA1NzBkNTU2YWM1M2UwNjc2Y2I1NjNiYmRkOTcxN2NkODI2OWJkZWJlZDZmNmQ0ZTdiZjgifX19");
arr.add("/craft:Crafting Table:CRAFTING_TABLE");
arr.add("/enderchest:Ender Chest:ENDER_CHEST");
arr.add("/wardrobe:Wardrobe:LEATHER_CHESTPLATE");
arr.add("/pets:Pets:BONE");
arr.add("neucl:Collection Log:MAP");
arr.add("neuah:NEU Auction House:GOLD_BLOCK");
return arr;
}
public class Button {
public String
|