aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/config/DulkirConfig.kt
blob: c9b5808a7d9d24eed4706970b0184c7989c5383c (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
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
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
package dulkirmod.config

import cc.polyfrost.oneconfig.config.Config
import cc.polyfrost.oneconfig.config.annotations.*
import cc.polyfrost.oneconfig.config.data.Mod
import cc.polyfrost.oneconfig.config.data.ModType
import dulkirmod.DulkirMod
import dulkirmod.huds.GardenInfoHud
import dulkirmod.huds.KeyHud
import dulkirmod.huds.YawDisplayHud
import dulkirmod.utils.Utils


object DulkirConfig : Config(Mod("DulkirMod", ModType.SKYBLOCK), "dulkirmod-config.json") {

    @Switch(
        name = "Patch Crimson Isle memory leak",
        description = "This is a temporary fix for the memory leak on crimson isles. It will be removed when Hypixel fixes the issue.",
        category = "General",
        subcategory = "General"
    )
    var crimsonIslesMemoryLeakPatch = true

    @Switch(
        name = "Hide Enchant Rune Particles",
        description = "ugly go bye-bye",
        category = "General",
        subcategory = "General"
    )
    var hideEnchantRune = false

    @Switch(
        name = "Abiphone Do-Not-Disturb",
        description = "Detects incoming calls and mutes ring audio for like 5 seconds. \nWorks as long as u don't lag particularly hard at the same time you're being called.",
        category = "General",
        subcategory = "General"
    )
    var abiDND = false

    @Switch(
        name = "Abiphone Caller ID",
        description = "If DND is on, still give the player a quick 1 liner to tell them who is calling.",
        category = "General",
        subcategory = "General"
    )
    var abiCallerID = false

    @Switch(
        name = "Hurt Cam Slider",
        description = "more or less ouchie",
        category = "General",
        subcategory = "General"
    )
    var hurtCamSlider = false

    @Slider(
        name = "Hurt Cam Intensity",
        description = "1 is default, make sure other mods noHurtCam stuff is off",
        category = "General",
        subcategory = "General",
        min = 0f,
        max = 2f,
        step = 0
    )
    var hurtCamIntensity = 1f

    @Switch(
        name = "Tooltip Features",
        description = "Turns on scrollable and (optional) scalable tooltips.",
        category = "General",
        subcategory = "General"
    )
    var scaledTooltips = false

    @Slider(
        name = "Tooltip Scale",
        description = "1 is default",
        category = "General",
        subcategory = "General",
        min = 0f,
        max = 2f,
        step = 0
    )
    var tooltipSize = 1f

    @Switch(
        name = "Hide Healer fairy",
        description = "Now only runs in dungeons lol",
        category = "Dungeons",
        subcategory = "Dungeons"
    )
    var hideHealerFairy = false

    @Switch(
        name = "Hide Heart Particles",
        description = "Useful for hyperion and healer bullshit",
        category = "Dungeons",
        subcategory = "Dungeons"
    )
    var hideHeartParticles = false

    @Switch(
        name = "Throttle Notifier",
        description = "Im pretty sure this is mostly patched? Idk I'm leaving it in",
        category = "Dungeons",
        subcategory = "Dungeons"
    )
    var throttleNotifier = true

    @Switch(
        name = "Vanquisher Broadcaster",
        description = "sends patcher sendcoords msg when you spawn a vanquisher. might make this put a waypoint later",
        category = "Random Beta Features",
        subcategory = "Random Beta Features"
    )
    var vanqBroadcast = false

    @Switch(
        name = "Cancel Armor Glint",
        description = "If you want all glint gone, I suggest using Patcher for that.",
        category = "Random Beta Features",
        subcategory = "Random Beta Features"
    )
    var cancelArmorGlint = false

    @Text(
        name = "Throttle Notifier String",
        description = "How do you want to tell people you are throttled?",
        category = "Dungeons",
        subcategory = "Dungeons",
        placeholder = "i am being throttled zzz",
        secure = false
    )
    var customMessage: String = "i am being throttled zzz"

    @Switch(
        name = "Throttle Notifier Spam",
        description = "LET EM KNOW!",
        category = "Dungeons",
        subcategory = "Dungeons"
    )
    var throttleNotifierSpam = true

    @Switch(
        name = "M7 Dragon Timer",
        description = "Large in-world text timers to help you see when dragons will spawn.",
        category = "Dungeons",
        subcategory = "Dungeons"
    )
    var dragonTimer = true

    @Switch(
        name = "Better M7 Dragon Killbox",
        description = "Mostly stolen from odin",
        category = "Dungeons",
        subcategory = "Dungeons"
    )
    var dragonKillBox = true

    @Switch(
        name = "Hide Extra Nametags",
        description = "Prevents some nametags not covered by skytils \"Hide non-starred nametags\" from rendering.",
        category = "General",
        subcategory = "General"
    )
    var hideTags = true

    // CUSTOM ANIMATIONS
    @Switch(
        name = "Global Toggle",
        description = "Change the look of your held item",
        category = "Animations",
        subcategory = "Animations"
    )
    var customAnimations = false

    @Slider(
        name = "Size",
        description = "Scales the size of your currently held item. Default: 0",
        category = "Animations",
        subcategory = "Animations",
        min = -1.5f,
        max = 1.5f,
        step = 0
    )
    var customSize = 0f

    @Checkbox(
        name = "Scale Swing",
        description = "Also scale the size of the swing animation.",
        category = "Animations",
        subcategory = "Animations"
    )
    var doesScaleSwing = true

    @Slider(
        name = "X",
        description = "Moves the held item. Default: 0",
        category = "Animations",
        subcategory = "Animations",
        min = -1.5f,
        max = 1.5f,
        step = 0
    )
    var customX = 0f

    @Slider(
        name = "Y",
        description = "Moves the held item. Default: 0",
        category = "Animations",
        subcategory = "Animations",
        min = -1.5f,
        max = 1.5f,
        step = 0
    )
    var customY = 0f

    @Slider(
        name = "Z",
        description = "Moves the held item. Default: 0",
        category = "Animations",
        subcategory = "Animations",
        min = -1.5f,
        max = 1.5f,
        step = 0
    )
    var customZ = 0f

    @Slider(
        name = "Yaw",
        description = "Rotates your held item. Default: 0",
        category = "Animations",
        subcategory = "Animations",
        min = -180f,
        max = 180f,
        step = 1
    )
    var customYaw = 0f

    @Slider(
        name = "Pitch",
        description = "Rotates your held item. Default: 0",
        category = "Animations",
        subcategory = "Animations",
        min = -180f,
        max = 180f,
        step = 1
    )
    var customPitch = 0f

    @Slider(
        name = "Roll",
        description = "Rotates your held item. Default: 0",
        category = "Animations",
        subcategory = "Animations",
        min = -180f,
        max = 180f,
        step = 1
    )
    var customRoll = 0f

    @Slider(
        name = "Speed",
        description = "Speed of the swing animation.",
        category = "Animations",
        subcategory = "Animations",
        min = -2f,
        max = 1f,
        step = 0
    )
    var customSpeed = 0f

    @Checkbox(
        name = "Ignore Haste",
        description = "Makes the chosen speed override haste modifiers.",
        category = "Animations",
        subcategory = "Animations",
    )
    var ignoreHaste = true

    @Dropdown(
        name = "Drinking Fix",
        description = "Pick how to handle drinking animations.",
        category = "Animations",
        subcategory = "Fixes",
        options = ["No fix", "Rotationless", "Fixed"]
    )
    var drinkingSelector = 2

    @Button(
        name = "Reset Item Values",
        description = "Vanilla Look! Closes Settings GUI.",
        category = "Animations",
        subcategory = "Animations",
        text = "Reset!"
    )
    fun demoButton() {
        customSize = 0f
        customX = 0f
        customY = 0f
        customZ = 0f
        customRoll = 0f
        customPitch = 0f
        customYaw = 0f
        doesScaleSwing = true
        ignoreHaste = true
        customSpeed = 0f
        DulkirMod.mc.displayGuiScreen(null)
    }

    @Button(
        name = "Export Preset as String",
        description = "Base64 representation of your current config - will copy to clipboard when pressed.",
        category = "Animations",
        subcategory = "Presets",
        text = "Export!"
    )
    fun presetString() = Utils.animationConfigToString()


    @Button(
        name = "Import Preset from Clipboard",
        description = "Base64 representation of your config accepted from clipboard. Closes gui.",
        category = "Animations",
        subcategory = "Presets",
        text = "Import!"
    )
    fun stringToConfig() = Utils.animationStringtoConfig()


    @Switch(
        name = "JoinDungeon Command Confirmation",
        description = "Chat notification when you push the button. Useful if you suck at navigating a numpad.",
        category = "Dungeons",
        subcategory = "Dungeons"
    )
    var dungeonCommandConfirm = true

    @Switch(
        name = "Hide Chests that are already opened at Croesus",
        description = "Just doesn't render the item if it has the chest opened string",
        category = "Dungeons",
        subcategory = "Dungeons"
    )
    var hideOpenedChests = false

    @Switch(
        name = "Highlight custom player for leap in menu",
        description = "Changes texture to green wool! Use the \"/hl\" command for convenient assignment.",
        category = "Dungeons",
        subcategory = "Dungeons"
    )
    var highlightLeap = false

    @Text(
        name = "Highlighted player name",
        description = "case-sensitive",
        category = "Dungeons",
        subcategory = "Dungeons",
        placeholder = "Dilkur",
        secure = false
    )
    var highlightLeapName: String = "Dilkur"

    @Switch(
        name = "Remove Selfie Camera",
        description = "Get rid of pesky reverse third person!",
        category = "General",
        subcategory = "General"
    )
    var noReverse3rdPerson = false

    @Switch(
        name = "Bridge Bot Formatter",
        description = "Global Toggle",
        category = "Bridge",
        subcategory = "Bridge"
    )
    var bridgeBot = false

    @Text(
        name = "Bridge Bot Name",
        description = "Not case-sensitive",
        category = "Bridge",
        subcategory = "Bridge",
        placeholder = "Bweefing",
        secure = false
    )
    var botName: String = "Bweefing"

    @Dropdown(
        name = "Bridge Chatter Name Color",
        description = "Pick how the player name looks.",
        category = "Bridge",
        subcategory = "Bridge",
        options = ["§0Black",
            "§1Dark Blue",
            "§2Dark Green",
            "§3Dark Aqua",
            "§4Dark Red",
            "§5Dark Purple",
            "§6Gold",
            "§7Gray",
            "§8Dark Gray",
            "§9Blue",
            "§aGreen",
            "§bAqua",
            "§cRed",
            "§dLight Purple",
            "§eYellow",
            "§fWhite",
            "§zSBA Chroma"
        ]
    )
    var bridgeColor = 6

    @Switch(
        name = "Ghast Notification",
        description = "Shows a title at 9:00pm for bestiary",
        category = "Bestiary",
        subcategory = "Notifications"
    )
    var notifyGhast = false

    @Switch(
        name = "Zombie Villager Notification",
        description = "Shows a title at 8:00pm for bestiary",
        category = "Bestiary",
        subcategory = "Notifications"
    )
    var notifyZombieVillager = false

    @Switch(
        name = "Broken Hype Notification",
        description = "Tells you if you are no longer getting bestiary! Requires champion and book of stats on your item. LEAVE OFF IF FISHING.",
        category = "Bestiary",
        subcategory = "Notifications"
    )
    var notifyHype = false

    @Switch(
        name = "Matcho Spawn Alert!",
        description = "Alerts you if your lobby becomes EXPLOSIVE!",
        category = "Bestiary",
        subcategory = "Notifications"
    )
    var notifyMatcho = false

    @Dropdown(
        name = "Bestiary Notification Color",
        description = "Changes color some bestiary features.",
        category = "Bestiary",
        subcategory = "Notifications",
        options = ["§0Black",
            "§1Dark Blue",
            "§2Dark Green",
            "§3Dark Aqua",
            "§4Dark Red",
            "§5Dark Purple",
            "§6Gold",
            "§7Gray",
            "§8Dark Gray",
            "§9Blue",
            "§aGreen",
            "§bAqua",
            "§cRed",
            "§dLight Purple",
            "§eYellow",
            "§fWhite",
            "§zSBA Chroma"
        ]
    )
    var bestiaryNotifColor = 15

    @Switch(
        name = "Text Shadow",
        description = "Shows text shadow for notification",
        category = "Bestiary",
        subcategory = "Notifications"
    )
    var bestiaryTextShadow = false

    @Slider(
        name = "Scale",
        description = "Size of notification!",
        category = "Bestiary",
        subcategory = "Notifications",
        min = 0f,
        max = 1f,
        step = 0
    )
    var bestiaryNotifSize = .7f


    @Switch(
        name = "Alert Noises",
        description = "Uses relevant mob sounds, doesn't override audio/patcher settings",
        category = "Bestiary",
        subcategory = "Audio"
    )
    var bestiaryAlertSounds = false

    @Slider(
        name = "Alert Volume",
        description = "Volume of notification!",
        category = "Bestiary",
        subcategory = "Audio",
        min = 0f,
        max = 1f,
        step = 0
    )
    var bestiaryNotifVol = .7f

    @Button(
        name = "Demo Volume Selection",
        description = "Plays the Ghast Noise as Reference, Might add individual sliders later but this seems like enough",
        category = "Bestiary",
        subcategory = "Audio",
        text = "Test"
    )
    fun demoVolume() {
        DulkirMod.mc.thePlayer.playSound("mob.ghast.scream", 1f * bestiaryNotifVol, 1f)
    }

    @Switch(
        name = "Hide Arachne Loot Nametags",
        description = "Useful when killing a lot of them",
        category = "Bestiary",
        subcategory = "Arachne"
    )
    var hideArachneTags = false

    @Switch(
        name = "Arachne kill timer",
        description = "Shows in chat.",
        category = "Bestiary",
        subcategory = "Arachne"
    )
    var arachneKillTimer = false

    @Switch(
        name = "Arachne spawn countdown",
        description = "Shows how long it takes for the arachne to spawn (in world).",
        category = "Bestiary",
        subcategory = "Arachne"
    )
    var arachneSpawnTimer = false

    @Switch(
        name = "Show Arachne Keeper Spawn Locations",
        description = "simple text waypoints",
        category = "Bestiary",
        subcategory = "Arachne"
    )
    var keeperWaypoints = false

    @Switch(
        name = "Focus Mode",
        description = "only show the nametags of keepers. make sure to turn off when you're done",
        category = "Bestiary",
        subcategory = "Arachne"
    )
    var keeperFocus = false

    @Switch(
        name = "Garden Visitor Alert",
        description = "Notifies you if you have max garden visitors in queue",
        category = "Farming",
        subcategory = "Farming"
    )
    var notifyMaxVisitors = false

    @Switch(
        name = "Persistent alert",
        description = "If turned on, the alert will continue to flash until dealt with.",
        category = "Farming",
        subcategory = "Farming"
    )
    var persistentAlert = true

    @Slider(
        name = "Default Sensitivity",
        description = "For use with the /farmcontrols command toggle",
        category = "Farming",
        subcategory = "Farming",
        min = 0f,
        max = 2f,
        step = 0
    )
    var defaultSens = .7f

    @Switch(
        name = "Turn off re-equip animation",
        description = "Will stop the spam re-equip when stuff like cultivating is updating",
        category = "Animations",
        subcategory = "Fixes"
    )
    var cancelReequip = false

    @HUD(
        name = "Wither Key Display",
        category = "HUD",
        subcategory = "Dungeons"
    )
    var witherKeyDisplayHUD: KeyHud = KeyHud()

    @HUD(
        name = "Pitch/Yaw Display",
        category = "HUD",
        subcategory = "Farming"
    )
    var YawDisplayHud: YawDisplayHud = YawDisplayHud()

    @Switch(
        name = "Display Pitch as well",
        description = "useful for some slime launcher stuff",
        category = "HUD",
        subcategory = "Farming"
    )
    var showPitch = false

    @Switch(
        name = "3 Decimals on Yaw",
        description = "are u ok bro",
        category = "HUD",
        subcategory = "Farming"
    )
    var yaw3Decimals = false

    @HUD(
        name = "Garden Info Display",
        category = "HUD",
        subcategory = "Garden"
    )
    var GardenInfoHud: GardenInfoHud = GardenInfoHud()

    @Switch(
        name = "Empty Composter Notif",
        description = "Will display in HUD instead of giga-alert",
        category = "HUD",
        subcategory = "Garden"
    )
    var composterAlert = true

    @Switch(
        name = "Farming Milestone Display",
        description = "Increasing number go brr",
        category = "HUD",
        subcategory = "Garden"
    )
    var gardenMilestoneDisplay = true

    @Switch(
        name = "Visitor Info",
        description = "Show number present and time until next",
        category = "HUD",
        subcategory = "Garden"
    )
    var visitorInfo = true



    fun init() {
        initialize()
        addDependency("customMessage", "throttleNotifier")
        addDependency("throttleNotifierSpam", "throttleNotifier")
        addDependency("bestiaryNotifVol", "bestiaryAlertSounds")
        addDependency("demoVolume", "bestiaryAlertSounds")
        addDependency("highlightLeapName", "highlightLeap")
        addDependency("abiCallerID", "abiDND")
        addDependency("hurtCamIntensity", "hurtCamSlider")
        addDependency("tooltipSize", "scaledTooltips")
        addDependency("persistentAlert", "notifyMaxVisitors")

    }
}