Repository navigation
Expand file tree
/
Copy pathsettings.lua
More file actions
executable file
·1209 lines (1169 loc) · 35.5 KB
/
Copy pathsettings.lua
File metadata and controls
executable file
·1209 lines (1169 loc) · 35.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
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
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
if not Cursive.superwow then
return
end
local L = AceLibrary("AceLocale-2.2"):new("Cursive")
Cursive:RegisterDB("CursiveDB")
Cursive:RegisterDefaults("profile", {
caption = L["Cursive"],
anchor = "RIGHT",
x = -147,
y = 64,
-- Core
enabled = true,
clickthrough = true,
showbackdrop = false,
showtitle = false,
showtargetindicator = false,
showraidicons = true,
showhealthbar = true,
showunitname = true,
-- v4.0: Default shared debuffs — core raid debuffs enabled, class utility off
shareddebuffs = {
-- Armor Reduction (enabled)
sunderarmor = true,
exposearmor = true,
faeriefire = true,
curseofrecklessness = true,
-- Spell Vulnerability (enabled)
firevulnerability = true,
winterschill = true,
shadowvulnerability = true,
shadowweaving = true,
curseoftheelements = true,
curseofshadow = true,
-- Weapon Procs (mixed)
armorshatter = true,
spellvulnerability = true,
thunderfury = true,
puncturearmor = true,
potentvenom = false,
scytheholy = true,
scytheshadow = true,
scythefire = true,
scythearcane = true,
scythenature = true,
scythefrost = true,
giftofarthas = false,
-- Class Utility (off by default)
demoroar = false,
hibernate = false,
huntersmark = false,
freezingtrap = false,
scattershot = false,
wyvernsting = false,
polymorph = false,
ignite = false,
judgementoflight = false,
judgementofwisdom = false,
judgementofthecrusader = false,
hammerofjustice = false,
shackleundead = false,
mindcontrol = false,
psychicscream = false,
burningzeal = false,
woundpoison = false,
sap = false,
curseoftongues = false,
curseofweakness = false,
banish = false,
enslavedemon = false,
fear = false,
howlofterror = false,
seduction = false,
demoshout = false,
thunderclap = false,
mortalstrike = false,
intimidatingshout = false,
},
alwaysshowcurrenttarget = false,
scale = 1,
opacity = 1.0,
fontscale = 1.0,
healthwidth = 100,
height = 18,
bartexture = "Interface\\TargetingFrame\\UI-StatusBar",
raidiconsize = 18,
curseiconsize = 18,
maxcurses = 14,
spacing = 3,
debufficonspacing = 1,
maxrow = 8,
maxcol = 1,
textsize = 9,
nameTextSize = 8,
cursetimersize = 10,
namelength = 60,
curseordering = L["Expiring soonest -> latest"],
curseshowdecimals = false,
coloreddecimalduration = false,
decimalDurationColor = "none",
cursetimeh = 5,
cursetimev = 5,
cursestacksize = 9,
cursestackh = 10,
cursestackv = 10,
cursetimeyellow = false,
cursestackyellow = true,
classcolordurationtimer = true,
-- Debuff frame border options
borderownclass = "off",
borderotherclass = "off",
borderownraid = "off",
borderotherraid = "off",
borderclasscolors = true,
borderwidth = 1,
borderopacity = 50,
durationtimercolor = "white",
stackcountercolor = "white",
-- Debuff order — sentinel defaults (real values applied in OnEnable)
orderfront = "_init",
ordermiddle = "_init",
orderback = "_init",
orderlast = "_init",
orderotherside = "_init",
-- Per-debuff order (initialized in OnEnable if empty)
raidDebuffOrder = {},
includeOwnRaidInOrder = "_init",
showMissingDebuffs = "_init",
-- Target Armor display
armorStatusEnabled = false,
armorColorIndicator = false,
armorDisplayStructure = "total+removed",
armorPosition = "default",
armorShowIcon = "center",
armorTextSize = 10,
armorPositionOffset = 0,
armorTextBorder = 3,
invertbars = false,
expandupwards = false,
filtertarget = false,
filterincombat = true,
filterhostile = false,
filterattackable = true,
filterplayer = false,
filternotplayer = false,
filterrange = true,
cctransparency = true,
oorstripes = true,
filterraidmark = false,
filterhascurse = false,
filterignored = false,
ignorelist = {},
ignorelistuseregex = false,
})
local function splitString(str, delimiter)
local result = {}
local from = 1
local delim_from, delim_to = string.find(str, delimiter, from)
while delim_from do
table.insert(result, string.sub(str, from, delim_from - 1))
from = delim_to + 1
delim_from, delim_to = string.find(str, delimiter, from)
end
table.insert(result, string.sub(str, from))
return result
end
local barOptions = {
["invertbars"] = {
type = "toggle",
name = "Invert Bar Display",
desc = "Show sections in order 3-2-1 and reverse element order in sections 1 and 3",
order = 1,
get = function()
return Cursive.db.profile.invertbars
end,
set = function(v)
Cursive.db.profile.invertbars = v
Cursive.UpdateFramesFromConfig()
end,
},
["expandupwards"] = {
type = "toggle",
name = "Expand Bars Upwards",
desc = "Make bars expand upwards instead of downwards",
order = 2,
get = function()
return Cursive.db.profile.expandupwards
end,
set = function(v)
Cursive.db.profile.expandupwards = v
Cursive.UpdateFramesFromConfig()
end,
},
["spacer1"] = {
type = "header",
name = "Section Display",
order = 5,
},
["showtargetindicator"] = {
type = "toggle",
name = L["Show Targeting Arrow"],
desc = L["Show Targeting Arrow"],
order = 10,
get = function()
return Cursive.db.profile.showtargetindicator
end,
set = function(v)
Cursive.db.profile.showtargetindicator = v
Cursive.UpdateFramesFromConfig()
end,
},
["showraidicons"] = {
type = "toggle",
name = L["Show Raid Icons"],
desc = L["Show Raid Icons"],
order = 15,
get = function()
return Cursive.db.profile.showraidicons
end,
set = function(v)
Cursive.db.profile.showraidicons = v
Cursive.UpdateFramesFromConfig()
end,
},
["showhealthbar"] = {
type = "toggle",
name = L["Show Health Bar"],
desc = L["Show Health Bar"],
order = 20,
get = function()
return Cursive.db.profile.showhealthbar
end,
set = function(v)
Cursive.db.profile.showhealthbar = v
Cursive.UpdateFramesFromConfig()
end,
},
["showunitname"] = {
type = "toggle",
name = L["Show Unit Name"],
desc = L["Show Unit Name"],
order = 25,
get = function()
return Cursive.db.profile.showunitname
end,
set = function(v)
Cursive.db.profile.showunitname = v
Cursive.UpdateFramesFromConfig()
end,
},
["alwaysshowcurrenttarget"] = {
type = "toggle",
name = "Always Show Current Target",
desc = "Always show current target at the bottom of the mob list if it is not already shown",
order = 30,
get = function()
return Cursive.db.profile.alwaysshowcurrenttarget
end,
set = function(v)
Cursive.db.profile.alwaysshowcurrenttarget = v
end,
},
["spacer2"] = {
type = "header",
name = "Size & Appearance",
order = 35,
},
["barwidth"] = {
type = "range",
name = L["Health Bar/Unit Name Width"],
desc = L["Health Bar/Unit Name Width"],
order = 40,
min = 30,
max = 150,
step = 5,
get = function()
return Cursive.db.profile.healthwidth
end,
set = function(v)
if v ~= Cursive.db.profile.healthwidth then
Cursive.db.profile.healthwidth = v
Cursive.UpdateFramesFromConfig()
end
end,
},
["barheight"] = {
type = "range",
name = L["Health Bar/Unit Name Height"],
desc = L["Health Bar/Unit Name Height"],
order = 50,
min = 10,
max = 30,
step = 2,
get = function()
return Cursive.db.profile.height
end,
set = function(v)
if v ~= Cursive.db.profile.height then
Cursive.db.profile.height = v
Cursive.UpdateFramesFromConfig()
end
end,
},
["bartexture"] = {
type = "text",
name = L["Health Bar Texture"],
desc = L["Health Bar Texture Desc"],
order = 55,
usage = "Interface\\TargetingFrame\\UI-StatusBar",
get = function()
return Cursive.db.profile.bartexture
end,
set = function(v)
if v ~= Cursive.db.profile.bartexture then
Cursive.db.profile.bartexture = v
Cursive.UpdateFramesFromConfig()
end
end,
},
["raidiconsize"] = {
type = "range",
name = L["Raid Icon Size"],
desc = L["Raid Icon Size"],
order = 60,
min = 10,
max = 30,
step = 1,
get = function()
return Cursive.db.profile.raidiconsize
end,
set = function(v)
if v ~= Cursive.db.profile.raidiconsize then
Cursive.db.profile.raidiconsize = v
Cursive.UpdateFramesFromConfig()
end
end,
},
["curseiconsize"] = {
type = "range",
name = L["Curse Icon Size"],
desc = L["Curse Icon Size"],
order = 70,
min = 10,
max = 30,
step = 1,
get = function()
return Cursive.db.profile.curseiconsize
end,
set = function(v)
if v ~= Cursive.db.profile.curseiconsize then
Cursive.db.profile.curseiconsize = v
Cursive.UpdateFramesFromConfig()
end
end,
},
["curseordering"] = {
type = "text",
name = L["Curse Ordering"],
desc = L["Curse Ordering"],
order = 72,
get = function()
return Cursive.db.profile.curseordering
end,
validate = { L["Order applied"], L["Expiring soonest -> latest"], L["Expiring latest -> soonest"] },
set = function(v)
Cursive.db.profile.curseordering = v
end,
},
["curseshowdecimals"] = {
type = "toggle",
name = L["Decimal Duration"],
desc = L["Decimal Duration Desc"],
order = 74,
get = function()
return Cursive.db.profile.curseshowdecimals
end,
set = function(v)
Cursive.db.profile.curseshowdecimals = v
Cursive.UpdateFramesFromConfig()
end,
},
["spacing"] = {
type = "range",
name = L["Health Bar Spacing"],
desc = L["Health Bar Spacing"],
order = 80,
min = 0,
max = 10,
step = 1,
get = function()
return Cursive.db.profile.spacing
end,
set = function(v)
if v ~= Cursive.db.profile.spacing then
Cursive.db.profile.spacing = v
Cursive.UpdateFramesFromConfig()
end
end,
},
["debufficonspacing"] = {
type = "range",
name = L["Debuff Icon Spacing"],
desc = L["Debuff Icon Spacing"],
order = 81,
min = 0,
max = 10,
step = 1,
get = function()
return Cursive.db.profile.debufficonspacing
end,
set = function(v)
if v ~= Cursive.db.profile.debufficonspacing then
Cursive.db.profile.debufficonspacing = v
Cursive.UpdateFramesFromConfig()
end
end,
},
["textsize"] = {
type = "range",
name = L["Name/Hp Text Size"],
desc = L["Name/Hp Text Size"],
order = 90,
min = 8,
max = 20,
step = 1,
get = function()
return Cursive.db.profile.textsize
end,
set = function(v)
if v ~= Cursive.db.profile.textsize then
Cursive.db.profile.textsize = v
Cursive.UpdateFramesFromConfig()
end
end,
},
["cursetimersize"] = {
type = "range",
name = L["Curse Timer Text Size"],
desc = L["Curse Timer Text Size"],
order = 95,
min = 6,
max = 20,
step = 1,
get = function()
return Cursive.db.profile.cursetimersize
end,
set = function(v)
if v ~= Cursive.db.profile.cursetimersize then
Cursive.db.profile.cursetimersize = v
Cursive.UpdateFramesFromConfig()
end
end,
},
["scale"] = {
type = "range",
name = L["Scale"],
desc = L["Scale"],
order = 100,
min = 0.5,
max = 2,
step = 0.1,
get = function()
return Cursive.db.profile.scale
end,
set = function(v)
if v ~= Cursive.db.profile.scale then
Cursive.db.profile.scale = v
Cursive.UpdateFramesFromConfig()
end
end,
},
}
local mobFilters = {
["incombat"] = {
type = "toggle",
name = L["In Combat"],
desc = L["In Combat"],
order = 1,
get = function()
return Cursive.db.profile.filterincombat
end,
set = function(v)
Cursive.db.profile.filterincombat = v
end,
},
["hostile"] = {
type = "toggle",
name = L["Hostile"],
desc = L["Hostile"],
order = 11,
get = function()
return Cursive.db.profile.filterhostile
end,
set = function(v)
Cursive.db.profile.filterhostile = v
end,
},
["attackable"] = {
type = "toggle",
name = L["Attackable"],
desc = L["Attackable"],
order = 22,
get = function()
return Cursive.db.profile.filterattackable
end,
set = function(v)
Cursive.db.profile.filterattackable = v
end,
},
["player"] = {
type = "toggle",
name = L["Player"],
desc = L["Player Desc"],
order = 33,
get = function()
return Cursive.db.profile.filterplayer
end,
set = function(v)
Cursive.db.profile.filterplayer = v
end,
},
["notplayer"] = {
type = "toggle",
name = L["Not Player"],
desc = L["Not Player Desc"],
order = 33,
get = function()
return Cursive.db.profile.filternotplayer
end,
set = function(v)
Cursive.db.profile.filternotplayer = v
end,
},
["range"] = {
type = "toggle",
name = IsSpellInRange and L["Within 45 Range"] or L["Within 28 Range"],
desc = IsSpellInRange and L["Within 45 Range"] or L["Within 28 Range"],
order = 44,
get = function()
return Cursive.db.profile.filterrange
end,
set = function(v)
Cursive.db.profile.filterrange = v
end,
},
["raidmark"] = {
type = "toggle",
name = L["Has Raid Mark"],
desc = L["Has Raid Mark"],
order = 55,
get = function()
return Cursive.db.profile.filterraidmark
end,
set = function(v)
Cursive.db.profile.filterraidmark = v
end,
},
["hascurse"] = {
type = "toggle",
name = L["Has Curse"],
desc = L["Only show units you have cursed"],
order = 66,
get = function()
return Cursive.db.profile.filterhascurse
end,
set = function(v)
Cursive.db.profile.filterhascurse = v
end,
},
["notignored"] = {
type = "toggle",
name = L["Not ignored"],
desc = L["Not ignored"],
order = 67,
get = function()
return Cursive.db.profile.filterignored
end,
set = function(v)
Cursive.db.profile.filterignored = v
end,
},
["ignorelist"] = {
type = "text",
name = L["Ignored Mobs List (Enter to save)"],
desc = L["Ignored Mobs Desc"],
usage = "whelp, black dragonkin, player3",
order = 68,
get = function()
if Cursive.db.profile.ignorelist and table.getn(Cursive.db.profile.ignorelist) > 0 then
return table.concat(Cursive.db.profile.ignorelist, ",") or ""
end
return ""
end,
set = function(v)
if not v or v == "" then
Cursive.db.profile.ignorelist = {}
else
Cursive.db.profile.ignorelist = splitString(v, ",");
end
-- check for common lua regex patterns
Cursive.db.profile.ignorelistuseregex = string.find(v, "[*+%%?]") ~= nil
end,
},
}
-- v3.2: Helper to create a shared debuff toggle entry
local function CreateSharedDebuffToggle(debuffKey, displayName, desc, order)
return {
type = "toggle",
name = displayName,
desc = desc,
order = order,
get = function()
return Cursive.db.profile.shareddebuffs[debuffKey]
end,
set = function(v)
Cursive.db.profile.shareddebuffs[debuffKey] = v
Cursive.UpdateFramesFromConfig()
end,
}
end
-- v3.2: Helper to create Enable All / Disable All for a set of keys
local function CreateBulkToggle(name, desc, keys, value, order)
return {
type = "execute",
name = name,
desc = desc,
order = order,
func = function()
for _, key in ipairs(keys) do
Cursive.db.profile.shareddebuffs[key] = value
end
Cursive.UpdateFramesFromConfig()
end,
}
end
-- v3.2: Raid Debuffs definition (13 debuffs, 3 categories)
local raidArmorKeys = { "sunderarmor", "exposearmor", "faeriefire", "curseofrecklessness" }
local raidSpellVulnKeys = { "firevulnerability", "winterschill", "shadowvulnerability", "shadowweaving", "curseoftheelements", "curseofshadow" }
local raidWeaponProcKeys = { "armorshatter", "puncturearmor", "spellvulnerability", "thunderfury", "scytheholy", "scytheshadow", "scythefire", "scythearcane", "scythenature", "scythefrost" }
local allRaidKeys = {}
for _, k in ipairs(raidArmorKeys) do table.insert(allRaidKeys, k) end
for _, k in ipairs(raidSpellVulnKeys) do table.insert(allRaidKeys, k) end
for _, k in ipairs(raidWeaponProcKeys) do table.insert(allRaidKeys, k) end
-- v3.2: Class debuffs definition
local classDebuffs = {
druid = { "faeriefire", "demoroar", "hibernate" },
hunter = { "huntersmark", "freezingtrap", "scattershot", "wyvernsting" },
mage = { "polymorph", "firevulnerability", "winterschill", "ignite" },
paladin = { "judgementoflight", "judgementofwisdom", "judgementofthecrusader", "hammerofjustice" },
priest = { "shadowweaving", "shackleundead", "mindcontrol", "psychicscream", "burningzeal" },
rogue = { "exposearmor", "woundpoison", "sap" },
warlock = { "curseofrecklessness", "curseoftheelements", "curseofshadow", "curseoftongues", "curseofweakness", "shadowvulnerability", "banish", "enslavedemon", "fear", "howlofterror", "seduction" },
warrior = { "sunderarmor", "demoshout", "thunderclap", "mortalstrike", "intimidatingshout" },
item = { "armorshatter", "puncturearmor", "spellvulnerability", "thunderfury", "giftofarthas", "potentvenom", "scytheholy", "scytheshadow", "scythefire", "scythearcane", "scythenature", "scythefrost" },
}
-- v3.2: Display names for debuff keys
local debuffDisplayNames = {
-- v3.2: Simple debuff names (used in By Class view)
faeriefire = "Faerie Fire",
sunderarmor = "Sunder Armor",
exposearmor = "Expose Armor",
curseofrecklessness = "Curse of Recklessness",
curseoftheelements = "Curse of the Elements",
curseofshadow = "Curse of Shadow",
curseoftongues = "Curse of Tongues",
curseofweakness = "Curse of Weakness",
firevulnerability = "Fire Vulnerability",
winterschill = "Winter's Chill",
shadowvulnerability = "Shadow Vulnerability",
shadowweaving = "Shadow Weaving",
spellvulnerability = "Spell Vulnerability |cFF808080(Nightfall)|r",
armorshatter = "Armor Shatter |cFF808080(Annihilator)|r",
thunderfury = "Thunderfury |cFF808080(Thunderfury)|r",
giftofarthas = "Gift of Arthas",
puncturearmor = "Puncture Armor |cFF808080(Weapon Proc)|r",
potentvenom = "Potent Venom |cFF808080(Vial of Potent Venoms)|r",
scytheholy = "Elune's Radiance |cFF808080(Holy Scythe)|r",
scytheshadow = "Elune's Twilight |cFF808080(Shadow Scythe)|r",
scythefire = "Elune's Rage |cFF808080(Fire Scythe)|r",
scythearcane = "Elune's Wrath |cFF808080(Arcane Scythe)|r",
scythenature = "Elune's Grace |cFF808080(Nature Scythe)|r",
scythefrost = "Elune's Ire |cFF808080(Frost Scythe)|r",
demoshout = "Demoralizing Shout",
demoroar = "Demoralizing Roar",
thunderclap = "Thunder Clap",
mortalstrike = "Mortal Strike",
woundpoison = "Wound Poison",
huntersmark = "Hunter's Mark",
freezingtrap = "Freezing Trap",
scattershot = "Scatter Shot",
wyvernsting = "Wyvern Sting",
polymorph = "Polymorph",
ignite = "Ignite",
hibernate = "Hibernate",
shackleundead = "Shackle Undead",
mindcontrol = "Mind Control",
psychicscream = "Psychic Scream",
burningzeal = "Burning Zeal |cFF808080(Priest T3.5)|r",
sap = "Sap",
banish = "Banish",
fear = "Fear",
howlofterror = "Howl of Terror",
enslavedemon = "Enslave Demon",
seduction = "Seduction",
intimidatingshout = "Intimidating Shout",
hammerofjustice = "Hammer of Justice",
judgementoflight = "Judgement of Light",
judgementofwisdom = "Judgement of Wisdom",
judgementofthecrusader = "Judgement of the Crusader",
}
-- v3.2: Raid view names with source in parentheses: "Debuff (Source)"
local raidDisplayNames = {
-- Armor Reduction
sunderarmor = "Sunder Armor |cFFC69B6D(Warrior)|r",
exposearmor = "Expose Armor |cFFFFF468(Rogue)|r",
faeriefire = "Faerie Fire |cFFFF7C0A(Druid)|r",
curseofrecklessness = "Curse of Recklessness |cFF9382C9(Warlock)|r",
-- Spell Vulnerability
firevulnerability = "Fire Vulnerability |cFF68CCEF(Mage)|r",
winterschill = "Winter's Chill |cFF68CCEF(Mage)|r",
shadowvulnerability = "Shadow Vulnerability |cFF9382C9(Warlock)|r",
shadowweaving = "Shadow Weaving |cFFFFFFFF(Priest)|r",
spellvulnerability = "Spell Vulnerability |cFF808080(Nightfall)|r",
curseoftheelements = "Curse of the Elements |cFF9382C9(Warlock)|r",
curseofshadow = "Curse of Shadow |cFF9382C9(Warlock)|r",
-- Weapon Procs
armorshatter = "Armor Shatter |cFF808080(Annihilator)|r",
thunderfury = "Thunderfury |cFF808080(Thunderfury)|r",
puncturearmor = "Puncture Armor |cFF808080(Weapon Proc)|r",
-- Other Raid
demoshout = "Demoralizing Shout |cFFC69B6D(Warrior)|r",
demoroar = "Demoralizing Roar |cFFFF7C0A(Druid)|r",
thunderclap = "Thunder Clap |cFFC69B6D(Warrior)|r",
mortalstrike = "Mortal Strike |cFFC69B6D(Warrior)|r",
woundpoison = "Wound Poison |cFFFFF468(Rogue)|r",
huntersmark = "Hunter's Mark |cFFAAD372(Hunter)|r",
giftofarthas = "Gift of Arthas |cFFFFFFFF(Item)|r",
potentvenom = "Potent Venom |cFFFFFFFF(Vial of Potent Venoms)|r",
scytheholy = "Elune's Radiance |cFF808080(Holy Scythe)|r",
scytheshadow = "Elune's Twilight |cFF808080(Shadow Scythe)|r",
scythefire = "Elune's Rage |cFF808080(Fire Scythe)|r",
scythearcane = "Elune's Wrath |cFF808080(Arcane Scythe)|r",
scythenature = "Elune's Grace |cFF808080(Nature Scythe)|r",
scythefrost = "Elune's Ire |cFF808080(Frost Scythe)|r",
}
-- v3.2: Detailed tooltip descriptions for each debuff
-- Format: Each line separate, white for stats, yellow/gold for effects
-- |cFFFFFFFF = white, |cFFFFD100 = gold/yellow, |r = reset
local debuffDescriptions = {
-- Armor Reduction
sunderarmor = "30s\nReduce 450 Armor up to 5 Times (2250)",
exposearmor = "30s\nReduce 340 Armor per Combo Point (1700)",
faeriefire = "40s\nReduce Armor by 505",
curseofrecklessness = "120s\nReduce Armor by 640",
-- Spell Vulnerability
firevulnerability = "30s\nIncreases Fire Damage by 3% up to 5 Times (15%)",
winterschill = "15s\nIncreases Frost Crit Chance by 2% up to 5 Times (10%)",
shadowvulnerability = "10s\nShadow Bolt and Drain Soul chance to Increases Shadow Damage by 20%",
shadowweaving = "15s\nIncreases Shadow Damage by 3% up to 5 Times (15%)",
spellvulnerability = "7s\nIncrease Spell Damage by 10%",
curseoftheelements = "300s\nReducing Fire and Frost Resistances by 75 and Increases Fire and Frost Damage by 10%",
curseofshadow = "300s\nReducing Shadow and Arcane Resistances by 75 and Increases Shadow and Arcane Damage by 10%",
-- Weapon Procs
armorshatter = "45s\nReduces armor by 100 up to 3 Times (300)",
thunderfury = "12s\nReduces Nature Resistances by 25 and Slowing Attack Speed by 20%",
puncturearmor = "30s\nReduces Armor by 200 up to 3 Times (600)",
giftofarthas = "180s\nAttackers have 3% chance to deal 200 Shadow damage over 4 ticks",
potentvenom = "12s\nDeals 120 Nature damage over 12 sec (Trinket Proc)",
scytheholy = "10s\n+8% Holy damage taken (Scythe of Elune)",
scytheshadow = "10s\n+8% Shadow damage taken, -25% Healing, 100 Mana/s, 120 Shadow/s (Scythe of Elune)",
scythefire = "10s\n+8% Fire damage taken, +2% Spell Crit, 325 Fire on Crit (Scythe of Elune)",
scythearcane = "10s\n+8% Arcane damage taken, next spell imbued (Scythe of Elune)",
scythenature = "10s\n+8% Nature damage taken, -8% damage done, 200 Nature/action (Scythe of Elune)",
scythefrost = "10s\n+8% Frost damage taken, -25% attack speed, 275 Frost on magic (Scythe of Elune)",
-- Warrior
demoshout = "30s\nReduces melee AP by 140",
thunderclap = "30s\nReduces attack speed by 10%",
mortalstrike = "10s\nReduces healing taken by 50%",
intimidatingshout = "8s\nFear effect",
-- Druid
demoroar = "30s\nReduces melee AP by 108",
hibernate = "40s\nSleep on Beasts and Dragonkin",
-- Hunter
huntersmark = "120s\nIncreases Ranged AP by 110",
freezingtrap = "20s\nFreezes target in ice",
scattershot = "4s\nDisorient, damage breaks effect",
wyvernsting = "12s\nSleep, damage breaks effect, Poison DoT after",
-- Mage
polymorph = "50s\nTransforms target into critter, damage breaks effect",
ignite = "4s\n40% of crit damage over 2 ticks",
-- Priest
shackleundead = "50s\nIncapacitate Undead",
mindcontrol = "60s\nControls target, caster immobilized",
psychicscream = "8s\nAoE Fear",
burningzeal = "18s\n852 Holy damage over 18s, +2% Holy damage taken (T3.5 Set Proc)",
-- Rogue
sap = "45s\nIncapacitate Humanoid, requires stealth",
woundpoison = "15s\nReduces healing taken by 5% up to 5 Times (25%)",
-- Warlock
curseoftongues = "30s\nIncreases casting time by 50%",
curseofweakness = "120s\nReduces melee AP by 31",
banish = "30s\nBanish Demon or Elemental, target is invulnerable",
fear = "20s\nFear, target runs in fear",
howlofterror = "10s\nAoE Fear up to 5 enemies",
enslavedemon = "300s\nControls a Demon",
seduction = "14s\nCharm from Succubus pet",
-- Paladin
hammerofjustice = "6s\nStun",
judgementoflight = "10s\nMelee attacks heal attacker for 61",
judgementofwisdom = "10s\nAttacks restore 33 mana to attacker",
judgementofthecrusader = "10s\nIncreases Holy damage taken by 140 and Increases melee and ranged AP",
}
-- v3.2: Build class display names
local classDisplayNames = {
druid = "Druid",
hunter = "Hunter",
mage = "Mage",
paladin = "Paladin",
priest = "Priest",
rogue = "Rogue",
warlock = "Warlock",
warrior = "Warrior",
item = L["Items/Weapons"],
}
-- v3.2: Build a submenu for a list of debuff keys
-- useRaidNames: if true, use "Debuff (Source)" format for Raid view
local function BuildDebuffGroup(keys, startOrder, useRaidNames)
local args = {}
local order = startOrder or 10
for _, key in ipairs(keys) do
local name
if useRaidNames then
name = raidDisplayNames[key] or debuffDisplayNames[key] or key
else
name = debuffDisplayNames[key] or key
end
local desc = debuffDescriptions[key] or ""
args[key] = CreateSharedDebuffToggle(key, name, desc, order)
order = order + 1
end
return args
end
-- v3.2: Build Raid Debuffs submenu
local raidDebuffsArgs = {}
-- Enable/Disable All
raidDebuffsArgs["enableAll"] = CreateBulkToggle(L["Enable All"], L["Enable all debuffs in this category"], allRaidKeys, true, 1)
raidDebuffsArgs["disableAll"] = CreateBulkToggle(L["Disable All"], L["Disable all debuffs in this category"], allRaidKeys, false, 2)
-- Armor Reduction header + toggles (Raid view: with source)
raidDebuffsArgs["armorHeader"] = { type = "header", name = L["Armor Reduction"], order = 10 }
local armorOrder = 11
for _, key in ipairs(raidArmorKeys) do
local name = raidDisplayNames[key] or debuffDisplayNames[key] or key
raidDebuffsArgs[key] = CreateSharedDebuffToggle(key, name, debuffDescriptions[key] or "", armorOrder)
armorOrder = armorOrder + 1
end
-- Spell Vulnerability header + toggles (Raid view: with source)
raidDebuffsArgs["spellvulnHeader"] = { type = "header", name = L["Spell Vulnerability"], order = 20 }
local svOrder = 21
for _, key in ipairs(raidSpellVulnKeys) do
local name = raidDisplayNames[key] or debuffDisplayNames[key] or key
raidDebuffsArgs[key] = CreateSharedDebuffToggle(key, name, debuffDescriptions[key] or "", svOrder)
svOrder = svOrder + 1
end
-- Weapon Procs header + toggles (Raid view: with source)
raidDebuffsArgs["weaponHeader"] = { type = "header", name = L["Weapon Procs"], order = 30 }
local wpOrder = 31
for _, key in ipairs(raidWeaponProcKeys) do
local name = raidDisplayNames[key] or debuffDisplayNames[key] or key
raidDebuffsArgs[key] = CreateSharedDebuffToggle(key, name, debuffDescriptions[key] or "", wpOrder)
wpOrder = wpOrder + 1
end
-- v3.2: Build By Class submenu
local byClassArgs = {}
local classOrder = 10
local classOrderList = { "druid", "hunter", "mage", "paladin", "priest", "rogue", "warlock", "warrior", "item" }
for _, className in ipairs(classOrderList) do
local keys = classDebuffs[className]
if keys then
local classArgs = {}
-- Enable/Disable All for this class
classArgs["enableAll"] = CreateBulkToggle(L["Enable All"], L["Enable all debuffs in this category"], keys, true, 1)
classArgs["disableAll"] = CreateBulkToggle(L["Disable All"], L["Disable all debuffs in this category"], keys, false, 2)
-- Individual toggles
local toggleOrder = 10
for _, key in ipairs(keys) do
classArgs[key] = CreateSharedDebuffToggle(key, debuffDisplayNames[key] or key, debuffDescriptions[key] or "", toggleOrder)
toggleOrder = toggleOrder + 1
end
byClassArgs[className] = {
type = "group",
name = classDisplayNames[className] or className,
desc = classDisplayNames[className] or className,
order = classOrder,
args = classArgs,
}
classOrder = classOrder + 1
end
end
-- v3.2: Combined Shared Debuffs menu
local sharedDebuffs = {
["raidDebuffs"] = {
type = "group",
name = L["Raid Debuffs"],
desc = L["Raid Debuffs"],
order = 10,
args = raidDebuffsArgs,
},
["byClass"] = {
type = "group",
name = L["By Class"],
desc = L["By Class"],
order = 20,
args = byClassArgs,
},
}
Cursive.cmdtable = {
type = "group",
handler = Cursive,
args = {
["enabled"] = {
type = "toggle",
name = L["Enabled"],
desc = L["Enable/Disable Cursive"],
order = 1,
get = function()
return Cursive.db.profile.enabled
end,
set = function(v)
Cursive.db.profile.enabled = v
if v == true then
Cursive.core.enable()
else
Cursive.core.disable()
end
end,
},
["showtitle"] = {
type = "toggle",
name = L["Show Title"],
desc = L["Show the title of the frame"],
order = 3,
get = function()
return Cursive.db.profile.showtitle
end,
set = function(v)
Cursive.db.profile.showtitle = v
Cursive.UpdateFramesFromConfig()
end,
},
["clickthrough"] = {
type = "toggle",
name = L["Allow clickthrough"],
desc = L["This will allow you to click through the frame to target mobs behind it, but prevents dragging the frame."],
order = 5,
get = function()
return Cursive.db.profile.clickthrough
end,
set = function(v)
Cursive.db.profile.clickthrough = v
Cursive.UpdateFramesFromConfig()
end,
},
["showbackdrop"] = {
type = "toggle",
name = L["Show Frame Background"],
desc = L["Toggle the frame background to help with positioning"],
order = 7,
get = function()
return Cursive.db.profile.showbackdrop
end,