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
|
package dulkirmod.config
import dulkirmod.DulkirMod
import dulkirmod.utils.Utils
import gg.essential.vigilance.Vigilant
import gg.essential.vigilance.data.Category
import gg.essential.vigilance.data.Property
import gg.essential.vigilance.data.PropertyType
import gg.essential.vigilance.data.SortingBehavior
import java.io.File
object Config : Vigilant(File("./config/dulkirmod/config.toml"), "DulkirMod", sortingBehavior = ConfigSorting) {
@Property(
type = PropertyType.SWITCH,
name = "Hide Enchant Rune Particles",
description = "ugly ass",
category = "General"
)
var hideEnchantRune = false
@Property(
type = PropertyType.SWITCH,
name = "Hide Healer fairy",
description = "Probably disable when not in dungeons for now. Will fix later.",
category = "General"
)
var hideHealerFairy = false
@Property(
type = PropertyType.SWITCH,
name = "Hide Heart Particles",
description = "Useful for hyperion and healer bullshit",
category = "General"
)
var hideHeartParticles = false
@Property(
type = PropertyType.SWITCH,
name = "Throttle Notifier",
description = "Making features out of bugs wow",
category = "General"
)
var throttleNotifier = false
@Property(
type = PropertyType.TEXT,
name = "Throttle Notifier String",
description = "How do you want to tell people you are throttled?",
category = "General",
placeholder = "i am being throttled zzz",
protectedText = false
)
var customMessage: String = "i am being throttled zzz"
@Property(
type = PropertyType.SWITCH,
name = "Hide Extra Nametags",
description = "Prevents some nametags not covered by skytils \"Hide non-starred nametags\" from rendering.",
category = "General"
)
var hideTags = false
// CUSTOM ANIMATIONS
@Property(
type = PropertyType.SWITCH,
name = "Custom Animations",
description = "Change the look of your held item",
category = "Animations"
)
var customAnimations = false
@Property(
type = PropertyType.DECIMAL_SLIDER,
name = "Size",
description = "Scales the size of your currently held item. Default: 0",
category = "Animations",
minF = -1.5f,
maxF = 1.5f,
decimalPlaces = 2
)
var customSize = 0f
@Property(
type = PropertyType.CHECKBOX,
name = "Scale Swing",
description = "Also scale the size of the swing animation.",
category = "Animations"
)
var doesScaleSwing = true
@Property(
type = PropertyType.DECIMAL_SLIDER,
name = "X",
description = "Moves the held item. Default: 0",
category = "Animations",
minF = -1.5f,
maxF = 1.5f,
decimalPlaces = 2
)
var customX = 0f
@Property(
type = PropertyType.DECIMAL_SLIDER,
name = "Y",
description = "Moves the held item. Default: 0",
category = "Animations",
minF = -1.5f,
maxF = 1.5f,
decimalPlaces = 2
)
var customY = 0f
@Property(
type = PropertyType.DECIMAL_SLIDER,
name = "Z",
description = "Moves the held item. Default: 0",
category = "Animations",
minF = -1.5f,
maxF = 1.5f,
decimalPlaces = 2
)
var customZ = 0f
@Property(
type = PropertyType.DECIMAL_SLIDER,
name = "Yaw",
description = "Rotates your held item. Default: 0",
category = "Animations",
minF = -180f,
maxF = 180f,
decimalPlaces = 0
)
var customYaw = 0f
@Property(
type = PropertyType.DECIMAL_SLIDER,
name = "Pitch",
description = "Rotates your held item. Default: 0",
category = "Animations",
minF = -180f,
maxF = 180f,
decimalPlaces = 0
)
var customPitch = 0f
@Property(
type = PropertyType.DECIMAL_SLIDER,
name = "Roll",
description = "Rotates your held item. Default: 0",
category = "Animations",
minF = -180f,
maxF = 180f,
decimalPlaces = 0
)
var customRoll = 0f
@Property(
type = PropertyType.DECIMAL_SLIDER,
name = "Speed",
description = "Speed of the swing animation.",
category = "Animations",
minF = -2f,
maxF = 1f,
decimalPlaces = 2
)
var customSpeed = 0f
@Property(
type = PropertyType.CHECKBOX,
name = "Ignore Haste",
description = "Makes the chosen speed override haste modifiers.",
category = "Animations"
)
var ignoreHaste = true
@Property(
type = PropertyType.SELECTOR,
name = "Drinking Fix",
description = "Pick how to handle drinking animations.",
category = "Animations",
options = ["No fix", "Rotationless", "Fixed"]
)
var drinkingSelector = 2
@Property(
type = PropertyType.BUTTON,
name = "Reset Item Values",
description = "Vanilla Look! Closes Settings GUI.",
category = "Animations"
)
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)
}
@Property(
type = PropertyType.BUTTON,
name = "Export Preset as String",
description = "Base64 representation of your current config - will copy to clipboard when pressed.",
category = "Animations"
)
fun presetString() {
Utils.animationConfigToString()
}
@Property(
type = PropertyType.BUTTON,
name = "Import Preset from Clipboard",
description = "Base64 representation of your config accepted from clipboard. Closes gui.",
category = "Animations"
)
fun stringToConfig() {
Utils.animationStringtoConfig()
}
@Property(
type = PropertyType.SWITCH,
name = "JoinDungeon Command Confirmation",
description = "Chat notification when you push the button. Useful if you suck at navigating a numpad.",
category = "General"
)
var dungeonCommandConfirm = false
@Property(
type = PropertyType.SWITCH,
name = "Remove Selfie Camera",
description = "Get rid of pesky reverse third person!",
category = "General"
)
var noReverse3rdPerson = false
@Property(
type = PropertyType.SWITCH,
name = "Bridge Bot Formatter",
description = "Global Toggle",
category = "Bridge"
)
var bridgeBot = false
@Property(
type = PropertyType.TEXT,
name = "Bridge Bot Name",
description = "Not case-sensitive",
category = "Bridge",
placeholder = "Bweefing",
protectedText = false
)
var botName: String = "Bweefing"
@Property(
type = PropertyType.SELECTOR,
name = "Bridge Chatter Name Color",
description = "Pick how the player name looks.",
category = "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
@Property(
type = PropertyType.SWITCH,
name = "Ghast Notification",
description = "Shows a title at 9:00pm for bestiary",
category = "Bestiary"
)
var notifyGhast = false
@Property(
type = PropertyType.SWITCH,
name = "Zombie Villager Notification",
description = "Shows a title at 8:00pm for bestiary",
category = "Bestiary"
)
var notifyZombieVillager = false
@Property(
type = PropertyType.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"
)
var notifyHype = false
@Property(
type = PropertyType.SELECTOR,
name = "Bestiary Notification Color",
description = "Changes color of title notification",
category = "Bestiary",
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
@Property(
type = PropertyType.SWITCH,
name = "Text Shadow",
description = "Shows text shadow for notification",
category = "Bestiary"
)
var bestiaryTextShadow = false
@Property(
type = PropertyType.DECIMAL_SLIDER,
name = "Scale",
description = "Size of notification!",
category = "Bestiary",
minF = 0f,
maxF = 1f,
decimalPlaces = 1
)
var bestiaryNotifSize = .7f
@Property(
type = PropertyType.SWITCH,
name = "Alert Noises",
description = "Uses relevant mob sounds, doesn't override audio/patcher settings",
category = "Bestiary"
)
var bestiaryAlertSounds = false
@Property(
type = PropertyType.DECIMAL_SLIDER,
name = "Alert Volume",
description = "Volume of notification!",
category = "Bestiary",
minF = 0f,
maxF = 1f,
decimalPlaces = 1
)
var bestiaryNotifVol = .7f
@Property(
type = PropertyType.BUTTON,
name = "Demo Volume Selection",
description = "Plays the Ghast Noise as Reference, Might add individual sliders later but this seems like enough",
category = "Bestiary"
)
fun demoVolume() {
DulkirMod.mc.thePlayer.playSound("mob.ghast.scream", 1f * Config.bestiaryNotifVol, 1f)
}
@Property(
type = PropertyType.SWITCH,
name = "Hide Arachne Loot Nametags",
description = "Useful when killing a lot of them",
category = "Bestiary"
)
var hideArachneTags = false
fun init() {
initialize()
addDependency("customMessage", "throttleNotifier")
setCategoryDescription(
"Custom Animations",
"All settings that are related to custom animations. Mostly help from Aton."
)
setCategoryDescription(
"Bridge",
"If your bridge format does not work, message me on discord and I can probably add it."
)
}
private object ConfigSorting : SortingBehavior() {
override fun getCategoryComparator(): Comparator<in Category> = Comparator { o1, o2 ->
if (o1.name == "General") return@Comparator -1
if (o2.name == "General") return@Comparator 1
else compareValuesBy(o1, o2) {
it.name
}
}
}
}
|