This repository was archived by the owner on Jul 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAye.PullTime.options.lua
More file actions
634 lines (633 loc) · 23.5 KB
/
Aye.PullTime.options.lua
File metadata and controls
634 lines (633 loc) · 23.5 KB
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
local Aye = Aye;
if not Aye.load then return end;
Aye.options.args.PullTime = {
name = "Pull Time Info",
type = "group",
args = {
header1 = {
order = 1,
type = "header",
name = "Pull Time Info",
},
description2 = {
order = 2,
type = "description",
name = "Show who pulled the boss with difference beetween planned pull |cff9d9d9d(in ms)|r. "
.. "If difference will be bigger than tolerated, additional " .. GetSpellLink(176781) .. " note will be applied, ex.:\n\n"
.. "|c" .. RAID_CLASS_COLORS[select(2, UnitClass("player"))].colorStr .. UnitName("player") .. "|r:"
.. " Pull on |cff66bbff|Hjournal:1:1372:16|h[Gorefiend]|h|r (−6ms), Target: Foo (−2ms), Aggro: Bar (+3ms)\n"
.. "|c" .. RAID_CLASS_COLORS[select(2, UnitClass("player"))].colorStr .. UnitName("player") .. "|r: " .. GetSpellLink(176781)
.. " Pull on |cff66bbff|Hjournal:1:1438:16|h[Archimonde]|h|r (+991s), Target: Foo (Bar's Pet) (+1m 17s)\n"
,
},
enable = {
order = 3,
name = "Enable",
desc = "Enable Pull Time Info",
type = "toggle",
get = function() return Aye.db.global.PullTime.enable end,
set = function(_, v) Aye.db.global.PullTime.enable = v end,
},
execute5 = {
order = 5,
type = "execute",
name = "Disable & Reload",
func = function() DisableAddOn("Aye.PullTime"); ReloadUI(); end,
hidden = function() return Aye.db.global.PullTime.enable end,
},
description6 = {
order = 6,
type = "description",
name = "\nThis module is currently temporary |cff9d9d9ddisabled|r at will and should no longer work.\n"
.. "|cff9d9d9dIf you wish to keep this module disabled, you should disable related addon completelly.\n"
.. "You can always re–enable module by re–enabling related addon addon the same way.|r"
,
hidden = function() return Aye.db.global.PullTime.enable end,
},
execute7 = {
order = 7,
type = "execute",
name = "Default module settings",
desc = "Reset settings of this module to default.\n\n|cff9d9d9dIf you wish to reset settings of all Aye modules instead, "
.. "use \"Defaults\" options from left bottom corner of \"Interface\" window, then select \"These Settings\".|r"
,
func = function()
Aye.db.global.PullTime = CopyTable(Aye.default.global.PullTime);
Aye.libs.ConfigRegistry:NotifyChange("Aye");
end,
hidden = function() return not Aye.db.global.PullTime.enable end,
},
description10 = {
order = 10,
type = "description",
name = "\n",
},
header11 = {
order = 11,
type = "header",
name = "Mispull options",
},
missPullTimeTolerance = {
order = 13,
name = "Misspull Time Tolerance |cff9d9d9d(in ms)|r",
desc = "Time allowed beetween planned pull",
type = "range",
min = 0,
max = 5000,
softMin = 0,
softMax = 1000,
bigStep = 100,
get = function() return Aye.db.global.PullTime.missPullTimeTolerance end,
set = function(_, v) Aye.db.global.PullTime.missPullTimeTolerance = v end,
disabled = function() return not Aye.db.global.PullTime.enable end,
},
showOnlyMispulled = {
order = 14,
name = "Show only if mispulled",
desc = "If pull was made in a toleranted time, don't output any information",
type = "toggle",
get = function() return Aye.db.global.PullTime.showOnlyMispulled end,
set = function(_, v) Aye.db.global.PullTime.showOnlyMispulled = v end,
disabled = function() return not Aye.db.global.PullTime.enable end,
},
description20 = {
order = 20,
type = "description",
name = "\n",
},
header21 = {
order = 21,
type = "header",
name = "Meters options",
},
description22 = {
order = 22,
type = "description",
name = "Configure Pull Time meters |cff9d9d9d(indicators)|r options. |cffe6cc80Recommendation|r|cff9d9d9d: Enable all meters to gain a full view on Pull Time|r. "
.. "In case of multiple meters, |cffe6cc80Misspull Time Tolerance|r option refers to arithmetic average of enabled Pull Time meters.\n"
,
},
showEncounterLink = {
order = 24,
name = "|cffe6cc80Show|r Encounter Link",
type = "toggle",
get = function() return Aye.db.global.PullTime.showEncounterLink end,
set = function(_, v) Aye.db.global.PullTime.showEncounterLink = v end,
disabled = function() return not Aye.db.global.PullTime.enable end,
},
showEncounterStartTime = {
order = 25,
name = "|cffe6cc80Show|r Encounter Start Time",
desc = "Show the difference beetween planned Pull Time and an Encounter Start Time |cff9d9d9d(in ms)|r",
type = "toggle",
get = function() return Aye.db.global.PullTime.showEncounterStartTime end,
set = function(_, v) Aye.db.global.PullTime.showEncounterStartTime = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or (
not Aye.db.global.PullTime.showTargetName
and not Aye.db.global.PullTime.showTargetPullTime
and not Aye.db.global.PullTime.showAggroName
and not Aye.db.global.PullTime.showAggroPullTime
and not Aye.db.global.PullTime.showHitName
and not Aye.db.global.PullTime.showHitSpell
and not Aye.db.global.PullTime.showHitPullTime
)
end,
},
showInstanceLink = {
order = 26,
name = "|cffe6cc80Show|r Instance Link",
type = "toggle",
get = function() return Aye.db.global.PullTime.showInstanceLink end,
set = function(_, v) Aye.db.global.PullTime.showInstanceLink = v end,
disabled = function() return not Aye.db.global.PullTime.enable end,
},
showTargetName = {
order = 27,
name = "|cffe6cc80Show|r Target Name",
desc = "|cffe6cc80Show|r the Name of Boss Target on first Boss Target Change since Pull Timer",
type = "toggle",
get = function() return Aye.db.global.PullTime.showTargetName end,
set = function(_, v) Aye.db.global.PullTime.showTargetName = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or (
not Aye.db.global.PullTime.showEncounterStartTime
and not Aye.db.global.PullTime.showTargetPullTime
and not Aye.db.global.PullTime.showAggroName
and not Aye.db.global.PullTime.showAggroPullTime
and not Aye.db.global.PullTime.showHitName
and not Aye.db.global.PullTime.showHitSpell
and not Aye.db.global.PullTime.showHitPullTime
)
end,
},
showTargetPullTime = {
order = 28,
name = "|cffe6cc80Show|r Target Pull Time",
desc = "|cffe6cc80Show|r the difference beetween planned Pull Time and the first Boss Target Change since Pull Timer |cff9d9d9d(in ms)|r",
type = "toggle",
get = function() return Aye.db.global.PullTime.showTargetPullTime end,
set = function(_, v) Aye.db.global.PullTime.showTargetPullTime = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or (
not Aye.db.global.PullTime.showEncounterStartTime
and not Aye.db.global.PullTime.showTargetName
and not Aye.db.global.PullTime.showAggroName
and not Aye.db.global.PullTime.showAggroPullTime
and not Aye.db.global.PullTime.showHitName
and not Aye.db.global.PullTime.showHitSpell
and not Aye.db.global.PullTime.showHitPullTime
)
end,
},
showAggroName = {
order = 30,
name = "|cffe6cc80Show|r Aggro Name",
desc = "|cffe6cc80Show|r the Name of Boss Aggroed unit on first Boss Aggro Change since Pull Timer",
type = "toggle",
get = function() return Aye.db.global.PullTime.showAggroName end,
set = function(_, v) Aye.db.global.PullTime.showAggroName = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or (
not Aye.db.global.PullTime.showEncounterStartTime
and not Aye.db.global.PullTime.showTargetName
and not Aye.db.global.PullTime.showTargetPullTime
and not Aye.db.global.PullTime.showAggroPullTime
and not Aye.db.global.PullTime.showHitName
and not Aye.db.global.PullTime.showHitSpell
and not Aye.db.global.PullTime.showHitPullTime
)
end,
},
showAggroPullTime = {
order = 31,
name = "|cffe6cc80Show|r Aggro Pull Time",
desc = "|cffe6cc80Show|r the difference beetween planned Pull Time and the first Boss Aggro Change since Pull Timer |cff9d9d9d(in ms)|r",
type = "toggle",
get = function() return Aye.db.global.PullTime.showAggroPullTime end,
set = function(_, v) Aye.db.global.PullTime.showAggroPullTime = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or (
not Aye.db.global.PullTime.showEncounterStartTime
and not Aye.db.global.PullTime.showTargetName
and not Aye.db.global.PullTime.showTargetPullTime
and not Aye.db.global.PullTime.showAggroName
and not Aye.db.global.PullTime.showHitName
and not Aye.db.global.PullTime.showHitSpell
and not Aye.db.global.PullTime.showHitPullTime
)
end,
},
showHitName = {
order = 33,
name = "|cffe6cc80Show|r First Hit Name",
desc = "|cffe6cc80Show|r the Name of unit who made first hit since Pull Timer",
type = "toggle",
get = function() return Aye.db.global.PullTime.showHitName end,
set = function(_, v) Aye.db.global.PullTime.showHitName = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or (
not Aye.db.global.PullTime.showEncounterStartTime
and not Aye.db.global.PullTime.showTargetName
and not Aye.db.global.PullTime.showTargetPullTime
and not Aye.db.global.PullTime.showAggroName
and not Aye.db.global.PullTime.showAggroPullTime
and not Aye.db.global.PullTime.showHitSpell
and not Aye.db.global.PullTime.showHitPullTime
)
end,
},
showHitSpell = {
order = 34,
name = "|cffe6cc80Show|r First Hit Spell",
desc = "|cffe6cc80Show|r the Spell that caused first hit since Pull Timer",
type = "toggle",
get = function() return Aye.db.global.PullTime.showHitSpell end,
set = function(_, v) Aye.db.global.PullTime.showHitSpell = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or (
not Aye.db.global.PullTime.showEncounterStartTime
and not Aye.db.global.PullTime.showTargetName
and not Aye.db.global.PullTime.showTargetPullTime
and not Aye.db.global.PullTime.showAggroName
and not Aye.db.global.PullTime.showAggroPullTime
and not Aye.db.global.PullTime.showHitName
and not Aye.db.global.PullTime.showHitPullTime
)
end,
},
showHitPullTime = {
order = 35,
name = "|cffe6cc80Show|r First Hit Pull Time",
desc = "|cffe6cc80Show|r the difference beetween planned Pull Time and the first hit since Pull Timer |cff9d9d9d(in ms)|r",
type = "toggle",
get = function() return Aye.db.global.PullTime.showHitPullTime end,
set = function(_, v) Aye.db.global.PullTime.showHitPullTime = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or (
not Aye.db.global.PullTime.showEncounterStartTime
and not Aye.db.global.PullTime.showTargetName
and not Aye.db.global.PullTime.showTargetPullTime
and not Aye.db.global.PullTime.showAggroName
and not Aye.db.global.PullTime.showAggroPullTime
and not Aye.db.global.PullTime.showHitName
and not Aye.db.global.PullTime.showHitSpell
)
end,
},
description90 = {
order = 90,
type = "description",
name = "\n",
},
header96 = {
order = 96,
type = "header",
name = "Delay options",
},
enableDelay = {
order = 97,
name = "|cffe6cc80Enable|r Delaying Info",
type = "toggle",
get = function() return Aye.db.global.PullTime.enableDelay end,
set = function(_, v) Aye.db.global.PullTime.enableDelay = v end,
disabled = function() return not Aye.db.global.PullTime.enable end,
},
metersDelayTime = {
order = 98,
name = "Maximum Delay |cff9d9d9d(in s)|r",
type = "range",
min = 0,
max = 60,
softMin = 0,
softMax = 10,
bigStep = 1,
get = function() return Aye.db.global.PullTime.metersDelayTime end,
set = function(_, v) Aye.db.global.PullTime.metersDelayTime = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or not Aye.db.global.PullTime.enableDelay
end,
},
description99 = {
order = 99,
type = "description",
name = "\nPull Time information is sent to chat once all chosen meters are filled. "
.. "|cffe6cc80Maximum Delay|r determined maximum waiting time for all meters. "
.. "If chosen time |cff9d9d9d(in s)|r will pass, Pull Time information will be sent on chat even if incomplete |cff9d9d9d(not all indicators are available)|r.\n\n"
.. "|cff9d9d9dIf Showing Delay is disabled, Pull Time information can eventually never show, or show with very low chance of reporting correct units and times.|r "
.. "|cffe6cc80Recommendation|r|cff9d9d9d: keep this option enabled at all time, eventually adjusting |cffe6cc80Maximum Delay|r time.|r\n"
,
},
description120 = {
order = 120,
type = "description",
name = "\n",
},
header121 = {
order = 121,
type = "header",
name = "Ninja options",
},
showNinjaPull = {
order = 123,
name = "|cffe6cc80Show|r Ninja Pulls |cff9d9d9d(Pulls without Pull Timer that won't contain Pull Timers)",
type = "toggle",
width = "full",
get = function() return Aye.db.global.PullTime.showNinjaPull end,
set = function(_, v) Aye.db.global.PullTime.showNinjaPull = v end,
disabled = function() return not Aye.db.global.PullTime.enable end,
},
showNinjaWord = {
order = 124,
name = "|cffe6cc80Show|r |cff9d9d9d\"|r|cffe6cc80Ninja|r|cff9d9d9d\"|r Pull word",
desc = "|cffe6cc80Show|r |cff9d9d9d\"|r|cffe6cc80Ninja Pull|r|cff9d9d9d\"|r instead of simple |cff9d9d9d\"|r|cffe6cc80Pull|r|cff9d9d9d\"|r on Ninja Pulls.",
type = "toggle",
get = function() return Aye.db.global.PullTime.showNinjaWord end,
set = function(_, v) Aye.db.global.PullTime.showNinjaWord = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or not Aye.db.global.PullTime.showNinjaPull
end,
},
showNinjaTimes = {
order = 126,
name = "|cffe6cc80Show|r Ninja Pull times",
desc = "By default, timers are not shown on Ninja Pulls as there is not planned pull time.\n\n"
.. "However, if enabled, times will be shown relative to encounter start time instead."
,
type = "toggle",
get = function() return Aye.db.global.PullTime.showNinjaTimes end,
set = function(_, v) Aye.db.global.PullTime.showNinjaTimes = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or not Aye.db.global.PullTime.showNinjaPull
end,
},
description150 = {
order = 150,
type = "description",
name = "\n",
},
header151 = {
order = 151,
type = "header",
name = "Instance Filter",
},
GuildGroupDisable = {
order = 153,
name = "|cffe6cc80Disable|r in Ally Group",
desc = "|cffe6cc80Disable|r in Ally Group |cff9d9d9d(at least half of other members are either friends or guildmates)|r",
type = "toggle",
get = function() return Aye.db.global.PullTime.GuildGroupDisable end,
set = function(_, v) Aye.db.global.PullTime.GuildGroupDisable = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or Aye.db.global.PullTime.GuildGroupForceEnable
end,
},
LFGDisable = {
order = 154,
name = "|cffe6cc80Disable|r in LFG group",
type = "toggle",
get = function() return Aye.db.global.PullTime.LFGDisable end,
set = function(_, v) Aye.db.global.PullTime.LFGDisable = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or Aye.db.global.PullTime.LFGForceEnable
end,
},
PvPDisable = {
order = 156,
name = "|cffe6cc80Disable|r on PvP",
type = "toggle",
get = function() return Aye.db.global.PullTime.PvPDisable end,
set = function(_, v) Aye.db.global.PullTime.PvPDisable = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or Aye.db.global.PullTime.PvPForceEnable
end,
},
OutsideInstanceDisable = {
order = 157,
name = "|cffe6cc80Disable|r outside Instance",
type = "toggle",
get = function() return Aye.db.global.PullTime.OutsideInstanceDisable end,
set = function(_, v) Aye.db.global.PullTime.OutsideInstanceDisable = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or Aye.db.global.PullTime.OutsideInstanceForceEnable
end,
},
description160 = {
order = 160,
type = "description",
name = "\n",
},
header161 = {
order = 161,
type = "header",
name = "Force Enable",
},
description162 = {
order = 162,
type = "description",
name = "|cffe6cc80Force Enable|r Pull Time independing of Instance Filter.\n",
},
GuildGroupForceEnable = {
order = 163,
name = "|cffe6cc80Force Enable|r in Ally Group",
desc = "|cffe6cc80Force Enable|r in Ally Group |cff9d9d9d(at least half of other members are either friends or guildmates)|r",
type = "toggle",
get = function() return Aye.db.global.PullTime.GuildGroupForceEnable end,
set = function(_, v) Aye.db.global.PullTime.GuildGroupForceEnable = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or Aye.db.global.PullTime.GuildGroupDisable
end,
},
LFGForceEnable = {
order = 164,
name = "|cffe6cc80Force Enable|r in LFG group",
type = "toggle",
get = function() return Aye.db.global.PullTime.LFGForceEnable end,
set = function(_, v) Aye.db.global.PullTime.LFGForceEnable = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or Aye.db.global.PullTime.LFGDisable
end,
},
PvPForceEnable = {
order = 166,
name = "|cffe6cc80Force Enable|r on PvP",
type = "toggle",
get = function() return Aye.db.global.PullTime.PvPForceEnable end,
set = function(_, v) Aye.db.global.PullTime.PvPForceEnable = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or Aye.db.global.PullTime.PvPDisable
end,
},
OutsideInstanceForceEnable = {
order = 167,
name = "|cffe6cc80Force Enable|r outside Instance",
type = "toggle",
get = function() return Aye.db.global.PullTime.OutsideInstanceForceEnable end,
set = function(_, v) Aye.db.global.PullTime.OutsideInstanceForceEnable = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or Aye.db.global.PullTime.OutsideInstanceDisable
end,
},
description190 = {
order = 190,
type = "description",
name = "\n",
},
header191 = {
order = 191,
type = "header",
name = "Force Disable",
},
description192 = {
order = 192,
type = "description",
name = "|cffe6cc80Force Disable|r is most important and overwrites even |cffe6cc80Force Enable|r.\n",
},
ForceDisableIfBenched = {
order = 193,
name = "|cffe6cc80Force Disable|r if Benched |cff9d9d9d(in Ally Group outside party #1–4/6)|r",
desc = "|cffe6cc80Force Disable|r in Ally Group |cff9d9d9d(at least half of other members are either friends or guildmates)|r if outside party"
.. " #1–4 |cff9d9d9d(on Mythic difficulty)|r or #1–6 |cff9d9d9d(on Normal/Heroic difficulty)|r.\n\n"
.. "|cffe6cc80Force Disable|r|cff9d9d9d is most important and overwrites |cffe6cc80Force Enable|r|cff9d9d9d.|r"
,
type = "toggle",
width = "full",
get = function() return Aye.db.global.PullTime.ForceDisableIfBenched end,
set = function(_, v) Aye.db.global.PullTime.ForceDisableIfBenched = v end,
disabled = function() return not Aye.db.global.PullTime.enable end,
},
description210 = {
order = 210,
type = "description",
name = "\n",
},
header211 = {
order = 211,
type = "header",
name = "Chat Channel",
},
description212 = {
order = 212,
type = "description",
name = "\"|cffe6cc80Raid|r\" means \"|cfff3e6c0Instance|r\" in LFR, or \"|cfff3e6c0Party|r\" if player is not in raid."
.. "\n\"|cffe6cc80Raid Warning|r\" channel behaves like \"|cffe6cc80Raid|r\" if player cannot Raid Warning."
.. "\n\"|cffe6cc80Dynamic|r\" is min. channel, where everybody can hear you (\"|cfff3e6c0Say|r\", \"|cfff3e6c0Yell|r\", or \"|cffe6cc80Raid|r\").\n"
,
},
channel = {
order = 213,
name = "Chat Channel",
desc = "The chat channel where message will be sent",
type = "select",
values = {
Print = "|cff9d9d9dPrint|r",
Say = "|cffffffffSay|r",
Yell = "|cffffffffYell|r",
Raid = "|cffe6cc80Raid|r",
RW = "|cffe6cc80Raid Warning|r",
Dynamic = "|cffe6cc80Dynamic|r",
Guild = "|cffffffffGuild|r",
Officer = "|cffffffffOfficer|r",
},
get = function() return Aye.db.global.PullTime.channel end,
set = function(_, v) Aye.db.global.PullTime.channel = v end,
disabled = function() return not Aye.db.global.PullTime.enable end,
},
forcePrintInGuildGroup = {
order = 214,
name = "|cffe6cc80Force Print|r in Ally Group",
desc = "In Ally Group |cff9d9d9d(at least half of other members are either friends or guildmates)|r prints message instead of sending it on chat",
type = "toggle",
get = function() return Aye.db.global.PullTime.forcePrintInGuildGroup end,
set = function(_, v) Aye.db.global.PullTime.forcePrintInGuildGroup = v end,
disabled = function() return
not Aye.db.global.PullTime.enable
or Aye.db.global.PullTime.channel == "Print"
end,
},
reportWithAyePrefix = {
order = 217,
name = "Add inline |cff9d9d9d\"[|r|cffe6cc80Aye|r|cff9d9d9d] \"|r prefix before message",
type = "toggle",
width = "full",
get = function() return Aye.db.global.PullTime.reportWithAyePrefix end,
set = function(_, v) Aye.db.global.PullTime.reportWithAyePrefix = v end,
disabled = function() return not Aye.db.global.PullTime.enable end,
},
reportWithWarningPrefix = {
order = 218,
name = "Add inline |cff9d9d9d\"" ..GetSpellLink(176781) .." \"|r prefix before message",
type = "toggle",
width = "full",
get = function() return Aye.db.global.PullTime.reportWithWarningPrefix end,
set = function(_, v) Aye.db.global.PullTime.reportWithWarningPrefix = v end,
disabled = function() return not Aye.db.global.PullTime.enable end,
},
description250 = {
order = 250,
type = "description",
name = "\n",
},
header251 = {
order = 251,
type = "header",
name = "Antispam",
},
description252 = {
order = 252,
type = "description",
name = "Prevent sending pull time information multiple times within small amount of time.\n\n"
.. "Once all pull times are fully determined, it is required to pass some time before reporting it, "
.. "waiting for eventual addon messages from other members saying that they sent pull timer information already, so we will refrain from repeating same pull time information.\n\n"
.. "|cffe6cc80Pull Time Info|r value should be slightly higher than the highest ping of any group member on any time during reports |cff9d9d9d(if unsure, |cffe6cc801000|rms is usually an optimal value)|r.\n"
,
},
antispamCooldown = {
order = 254,
name = "Antispam Cooldown |cff9d9d9d(in s)|r",
desc = "Minimum amount of time |cff9d9d9d(in seconds)|r that must pass before sending pull time information again.",
type = "range",
min = 0,
max = 60,
softMin = 5,
softMax = 30,
bigStep = 5,
get = function() return Aye.db.global.PullTime.antispamCooldown end,
set = function(_, v) Aye.db.global.PullTime.antispamCooldown = v end,
disabled = function() return not Aye.db.global.PullTime.enable end,
},
antispamReportDelay = {
order = 255,
name = "Pull Time Info Delay |cff9d9d9d(in ms)|r",
desc = "Pull Time Info Delay by specified amount of time |cff9d9d9d(in milliseconds)|r.\n\n",
type = "range",
min = 0,
max = 5000,
softMin = 0,
softMax = 3000,
bigStep = 200,
get = function() return Aye.db.global.PullTime.antispamReportDelay end,
set = function(_, v) Aye.db.global.PullTime.antispamReportDelay = v end,
disabled = function() return not Aye.db.global.PullTime.enable end,
},
},
};