-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathHowToSunspireSettings.lua
More file actions
991 lines (978 loc) · 37.1 KB
/
HowToSunspireSettings.lua
File metadata and controls
991 lines (978 loc) · 37.1 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
HowToSunspire = HowToSunspire or {}
local HowToSunspire = HowToSunspire
local LAM = LibAddonMenu2
local WM = WINDOW_MANAGER
----------------------------------------------------------------------------------------------------------
---------------------------------------------[ PANEL ]----------------------------------------------
----------------------------------------------------------------------------------------------------------
function HowToSunspire.CreateSettingsWindow()
local panelData = {
type = "panel",
name = "HowToSunspire",
displayName = "HowTo|cffbf00Sunspire|r",
author = "Floliroy, @nogetrandom [PC EU]",
version = HowToSunspire.version,
slashCommand = "/HowToSunspire",
registerForRefresh = true,
registerForDefaults = true,
}
local cntrlOptionsPanel = LAM:RegisterAddonPanel("HowToSunspire_Settings", panelData)
local Unlock = {
Alerts = false,
HA = false,
Block = false,
Leap = false,
Shield = false,
Comet = false,
MeteorNames = false,
Spit = false,
Geyser = false,
-- Flare = false,
Breath = false,
SweepBreath = false,
Thrash = false,
SoulTear = false,
PowerfulSlam = false,
-- HailOfStone = false,
Negate = false,
GlacialFist = false,
Stonefist = false,
------------------------
Timers = false,
IceTomb = false,
LaserLokke = false,
HP = false,
Landing = false,
Atro = false,
Cata = false,
NextFlare = false,
Storm = false,
Portal = false,
Wipe = false,
NextMeteor = false,
}
local sV = HowToSunspire.savedVariables
local optionsData = {
{ type = "header", name = "User Interface",
},
{ type = "checkbox", name = "Enable Notification Sounds",
tooltip = "Enable or disable sounds when you get an alert.",
getFunc = function() return sV.Enable.Sound end,
setFunc = function(newValue)
sV.Enable.Sound = newValue
end,
},
{ type = "header", name = "Notification Sizes and Positions",
},
{ type = "submenu", name = "Alerts",
controls = {
{ type = "description",
text = "Alerts from immediate incoming attacks. Unlock to adjust their position below.",
},
{ type = "checkbox", name = "Unlock all Alerts",
tooltip = "Adjust the position of all alerts from immediate attacks.",
default = false,
getFunc = function() return Unlock.Alerts end,
setFunc = function(newValue)
Unlock.Alerts = newValue
Unlock.HA = newValue
Hts_Ha:SetHidden(not newValue)
Unlock.Block = newValue
Hts_Block:SetHidden(not newValue)
Unlock.Leap = newValue
Hts_Leap:SetHidden(not newValue)
Unlock.Shield = newValue
Hts_Shield:SetHidden(not newValue)
Unlock.Comet = newValue
Hts_Comet:SetHidden(not newValue)
Unlock.MeteorNames = newValue
Hts_MeteorNames:SetHidden(not newValue)
Unlock.Spit = newValue
Hts_GlacialFist:SetHidden(not newValue)
Unlock.GlacialFist = newValue
Hts_Stonefist:SetHidden(not newValue)
Unlock.Stonefist = newValue
Hts_Spit:SetHidden(not newValue)
Unlock.Geyser = newValue
Hts_Geyser:SetHidden(not newValue)
-- Unlock.Flare = newValue
-- Hts_Flare:SetHidden(not newValue)
Unlock.Breath = newValue
Hts_Breath:SetHidden(not newValue)
Unlock.SweepBreath = newValue
Hts_Sweep:SetHidden(not newValue)
Unlock.Thrash = newValue
Hts_Thrash:SetHidden(not newValue)
Unlock.SoulTear = newValue
Hts_SoulTear:SetHidden(not newValue)
Unlock.PowerfulSlam = newValue
Hts_PowerfulSlam:SetHidden(not newValue)
-- Unlock.HailOfStone = newValue
-- Hts_HailOfStone:SetHidden(not newValue)
Unlock.Negate = newValue
Hts_Negate:SetHidden(not newValue)
end,
width = "half",
},
{ type = "slider", name = "Alert Size",
tooltip = "Choose the size of alerts from immediate attacks.",
getFunc = function() return sV.AlertSize end,
setFunc = function(newValue)
sV.AlertSize = newValue
HowToSunspire.SetFontSize(Hts_Ha_Label, newValue)
HowToSunspire.SetFontSize(Hts_Block_Label, newValue)
HowToSunspire.SetFontSize(Hts_Leap_Label, newValue)
HowToSunspire.SetFontSize(Hts_Shield_Label, newValue)
HowToSunspire.SetFontSize(Hts_Comet_Label, newValue)
HowToSunspire.SetMeteorNameSize()
HowToSunspire.SetFontSize(Hts_Spit_Label, newValue)
HowToSunspire.SetFontSize(Hts_Geyser_Label, newValue)
-- HowToSunspire.SetFontSize(Hts_Flare_Label, newValue)
HowToSunspire.SetFontSize(Hts_Breath_Label, newValue)
HowToSunspire.SetFontSize(Hts_Sweep_Label, newValue)
HowToSunspire.SetFontSize(Hts_Thrash_Label, newValue)
HowToSunspire.SetFontSize(Hts_SoulTear_Label, newValue)
HowToSunspire.SetFontSize(Hts_PowerfulSlam_Label, newValue)
-- HowToSunspire.SetFontSize(Hts_HailOfStone_Label, newValue)
HowToSunspire.SetFontSize(Hts_Negate_Label, newValue)
HowToSunspire.SetFontSize(Hts_GlacialFist_Label, newValue)
HowToSunspire.SetFontSize(Hts_Stonefist_Label, newValue)
end,
min = 24,
max = 56,
step = 2,
default = 40,
width = "half",
},
{ type = "divider",
},
{ type = "checkbox", name = "Heavy Attacks",
tooltip = "Adjust the position of the Heavy Attacks timer text from various enemies.",
default = false,
getFunc = function() return Unlock.HA end,
setFunc = function(newValue)
Unlock.HA = newValue
Hts_Ha:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Jode´s Fire-Fang Jump",
tooltip = "Adjust the position of the Block text.",
default = false,
getFunc = function() return Unlock.Block end,
setFunc = function(newValue)
Unlock.Block = newValue
Hts_Block:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Vigil Statue's Ground Slam",
tooltip = "Adjust the position of the Ground Slam text.",
default = false,
getFunc = function() return Unlock.PowerfulSlam end,
setFunc = function(newValue)
Unlock.PowerfulSlam = newValue
Hts_PowerfulSlam:SetHidden(not newValue)
end,
width = "half",
},
-- { type = "checkbox",
-- name = "Vigil Statue's Hail of Stones",
-- tooltip = "Adjust the position of the Hail of Stones text.",
-- default = false,
-- getFunc = function() return Unlock.HailOfStone end,
-- setFunc = function(newValue)
-- Unlock.HailOfStone = newValue
-- Hts_HailOfStone:SetHidden(not newValue)
-- end,
-- width = "half",
-- },
{ type = "checkbox", name = "Glacial Fist",
tooltip = "Adjust the position of the alert from Ice Atronarch's Glacial Fist.",
default = false,
getFunc = function() return Unlock.GlacialFist end,
setFunc = function(newValue)
Unlock.Fist = newValue
Hts_GlacialFist:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Stonefist",
tooltip = "Adjust the position of the alert from Vigil Statue's Stonefist.",
default = false,
getFunc = function() return Unlock.Stonefist end,
setFunc = function(newValue)
Unlock.Fist = newValue
Hts_Stonefist:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Leap",
tooltip = "Adjust the position of the Leap text.",
default = false,
getFunc = function() return Unlock.Leap end,
setFunc = function(newValue)
Unlock.Leap = newValue
Hts_Leap:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Comet / Meteor",
tooltip = "Adjust the position of the Comet and Meteor notifications.",
default = false,
getFunc = function() return Unlock.Comet end,
setFunc = function(newValue)
Unlock.Comet = newValue
Hts_Comet:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Meteor Targets",
tooltip = "Adjust the position of the Meteor Target notifications.",
default = false,
getFunc = function() return Unlock.MeteorNames end,
setFunc = function(newValue)
Unlock.MeteorNames = newValue
Hts_MeteorNames:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Shield Charge",
tooltip = "Adjust the position of the Shield Charge alert.",
default = false,
getFunc = function() return Unlock.Shield end,
setFunc = function(newValue)
Unlock.Shield = newValue
Hts_Shield:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Fire Spit",
tooltip = "Adjust the position of Fire Spit.",
default = false,
getFunc = function() return Unlock.Spit end,
setFunc = function(newValue)
Unlock.Spit = newValue
Hts_Spit:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Lava Geyser",
tooltip = "Adjust the position of the Lava Geyser notification.",
default = false,
getFunc = function() return Unlock.Geyser end,
setFunc = function(newValue)
Unlock.Geyser = newValue
Hts_Geyser:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Breath",
tooltip = "Adjust the position of Breath.\n|cff0000Note|r: This includes all bosses.",
default = false,
getFunc = function() return Unlock.SweepBreath end,
setFunc = function(newValue)
Unlock.Breath = newValue
Hts_Breath:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Sweeping Breath",
tooltip = "Adjust the position of Sweeping Breath.",
default = false,
getFunc = function() return Unlock.SweepBreath end,
setFunc = function(newValue)
Unlock.SweepBreath = newValue
Hts_Sweep:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Thrash",
tooltip = "Adjust the position of Thrash.",
default = false,
getFunc = function() return Unlock.Thrash end,
setFunc = function(newValue)
Unlock.Thrash = newValue
Hts_Thrash:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Soul Tear",
tooltip = "Adjust the position of Soul Tear.",
default = false,
getFunc = function() return Unlock.SoulTear end,
setFunc = function(newValue)
Unlock.SoulTear = newValue
Hts_SoulTear:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Negate",
tooltip = "Adjust the position of Negate from the Eternal Servant in Nahviintas's portal.",
default = false,
getFunc = function() return Unlock.Negate end,
setFunc = function(newValue)
Unlock.Negate = newValue
Hts_Negate:SetHidden(not newValue)
end,
width = "half",
},
-- { type = "checkbox",
-- name = "Flare",
-- tooltip = "Adjust the position of fire atro light attack alert.",
-- default = false,
-- getFunc = function() return Unlock.Flare end,
-- setFunc = function(newValue)
-- Unlock.Flare = newValue
-- Hts_Flare:SetHidden(not newValue)
-- end,
-- width = "half",
-- },
},
},
{ type = "submenu", name = "Timers and Updates",
controls = {
{ type = "description",
text = "Countdowns for timed mechanics and general encounter updates. Unlock to adjust their position below.",
},
{ type = "checkbox", name = "Unlock all Timers",
tooltip = "Adjust the position of all timed mechanics.",
default = false,
getFunc = function() return Unlock.Timers end,
setFunc = function(newValue)
Unlock.Timers = newValue
Unlock.IceTomb = newValue
Hts_Ice:SetHidden(not newValue)
Unlock.LaserLokke = newValue
Hts_Laser:SetHidden(not newValue)
Unlock.HP = newValue
Hts_HP:SetHidden(not newValue)
Unlock.Landing = newValue
Hts_Landing:SetHidden(not newValue)
Unlock.Atro = newValue
Hts_Atro:SetHidden(not newValue)
Unlock.Cata = newValue
Hts_Cata:SetHidden(not newValue)
Unlock.NextFlare = newValue
Hts_NextFlare:SetHidden(not newValue)
Unlock.Storm = newValue
Hts_Storm:SetHidden(not newValue)
Unlock.Portal = newValue
Hts_Portal:SetHidden(not newValue)
Unlock.Wipe = newValue
Hts_Wipe:SetHidden(not newValue)
Unlock.NextMeteor = newValue
Hts_NextMeteor:SetHidden(not newValue)
end,
width = "half",
},
{ type = "slider", name = "Timer Size",
tooltip = "Choose the size of all timed mechanics.",
getFunc = function() return sV.TimerSize end,
setFunc = function(newValue)
sV.TimerSize = newValue
HowToSunspire.SetIceSize()
HowToSunspire.SetFontSize(Hts_Laser_Label, newValue)
HowToSunspire.SetFontSize(Hts_HP_Label, newValue)
HowToSunspire.SetFontSize(Hts_Landing_Label, newValue)
HowToSunspire.SetFontSize(Hts_Atro_Label, newValue)
HowToSunspire.SetFontSize(Hts_NextFlare_Label, newValue)
HowToSunspire.SetFontSize(Hts_Cata_Label, newValue)
HowToSunspire.SetFontSize(Hts_Portal_Label, newValue)
HowToSunspire.SetFontSize(Hts_Wipe_Label, newValue)
HowToSunspire.SetFontSize(Hts_Storm_Label, newValue)
HowToSunspire.SetFontSize(Hts_NextMeteor_Label, newValue)
end,
min = 24,
max = 56,
step = 2,
default = 40,
width = "half",
},
{ type = "divider",
},
{ type = "checkbox", name = "Boss HP Tracker",
tooltip = "Adjust the position of the boss flying / landing notification.",
default = false,
getFunc = function() return Unlock.HP end,
setFunc = function(newValue)
Unlock.HP = newValue
Hts_HP:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Boss Landing Tracker",
tooltip = "Adjust the position of the boss flying / landing notification.",
default = false,
getFunc = function() return Unlock.Landing end,
setFunc = function(newValue)
Unlock.Landing = newValue
Hts_Landing:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Ice Tomb",
tooltip = "Adjust the position of the Ice Tomb timer.",
default = false,
getFunc = function() return Unlock.IceTomb end,
setFunc = function(newValue)
Unlock.IceTomb = newValue
Hts_Ice:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Laser",
tooltip = "Adjust the position of the Lokkestiiz Laser.",
default = false,
getFunc = function() return Unlock.LaserLokke end,
setFunc = function(newValue)
Unlock.LaserLokke = newValue
Hts_Laser:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Fire Atro Spawn",
tooltip = "Adjust the position of the Fire Atro spawn text.",
default = false,
getFunc = function() return Unlock.Atro end,
setFunc = function(newValue)
Unlock.Atro = newValue
Hts_Atro:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Cataclysm",
tooltip = "Adjust the position of Cataclysm.",
default = false,
getFunc = function() return Unlock.Cata end,
setFunc = function(newValue)
Unlock.Cata = newValue
Hts_Cata:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Next Flare",
tooltip = "Adjust the position of the Next Flare timer.",
default = false,
getFunc = function() return Unlock.NextFlare end,
setFunc = function(newValue)
Unlock.NextFlare = newValue
Hts_NextFlare:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Fire Storm",
tooltip = "Adjust the position of Fire Storm.",
default = false,
getFunc = function() return Unlock.Storm end,
setFunc = function(newValue)
Unlock.Storm = newValue
Hts_Storm:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Portal Timers",
tooltip = "Adjust the position of the Portal Timers.\n|cff0000Note|r: This includes Portal Open, Pins and Interrupt countdowns.",
default = false,
getFunc = function() return Unlock.Portal end,
setFunc = function(newValue)
Unlock.Portal = newValue
Hts_Portal:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Wipe Countdown",
tooltip = "Adjust the position of the Wipe countdown.",
default = false,
getFunc = function() return Unlock.Wipe end,
setFunc = function(newValue)
Unlock.Wipe = newValue
Hts_Wipe:SetHidden(not newValue)
end,
width = "half",
},
{ type = "checkbox", name = "Next Meteor",
tooltip = "Adjust the position of the Next Meteor timer.",
default = false,
getFunc = function() return Unlock.NextMeteor end,
setFunc = function(newValue)
Unlock.NextMeteor = newValue
Hts_NextMeteor:SetHidden(not newValue)
end,
width = "half",
},
},
},
{ type = "description", text = "Choose which mechanics to track.",
},
{ type = "submenu", name = "Global Notifications",
controls = {
{ type = "description",
text = "Mechanics from various adds throughout the trial.",
},
{ type = "checkbox",
name = "Heavy Attack Alerts",
tooltip = "Tracks all Heavy Attacks including bosses and the Eternal Servant.",
default = true,
getFunc = function() return sV.Enable.HA end,
setFunc = function(newValue)
sV.Enable.HA = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Jode´s Fire-Fang Jump",
tooltip = "Alerts you when the red cats pounce.",
default = true,
getFunc = function() return sV.Enable.Block end,
setFunc = function(newValue)
sV.Enable.Block = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Leap",
tooltip = "Alerts you when a Fury of Alkosh is leaping.",
default = true,
getFunc = function() return sV.Enable.Leap end,
setFunc = function(newValue)
sV.Enable.Leap = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Shield Charge",
tooltip = "Alerts you if the 1H & Shield adds are targeting you with Shield Charge.",
default = true,
getFunc = function() return sV.Enable.Shield end,
setFunc = function(newValue)
sV.Enable.Shield = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Comet / Meteor",
tooltip = "Tracks ALL Meteors and Comets in the trial including Nahvintaas's Molten Meteor.",
default = true,
getFunc = function() return sV.Enable.Comet end,
setFunc = function(newValue)
sV.Enable.Comet = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Fire Spit",
tooltip = "Alerts you when you are the target of Fire Spit, which summons an AoE and then an atronach.\n|cff0000Note:|r Tracks this mechanic in both Lokkestiiz and Nahviintaas encounters.",
default = true,
getFunc = function() return sV.Enable.Spit end,
setFunc = function(newValue)
sV.Enable.Spit = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Lava Geyser",
tooltip = "Alerts you when a Lava Geyser is about to hit near to you.\n|cff0000Note:|r Tracks this mechanic throughout all fights in Sunspire.",
default = true,
getFunc = function() return sV.Enable.Geyser end,
setFunc = function(newValue)
sV.Enable.Geyser = newValue
end,
width = "half",
},
},
},
{ type = "submenu", name = "Bosses Common Mechanics",
controls = {
{ type = "checkbox",
name = "Breath",
tooltip = "Alerts you when you are the target of Breath from either of the 3 bosses.",
default = true,
getFunc = function() return sV.Enable.Breath end,
setFunc = function(newValue)
sV.Enable.Breath = newValue
end,
width = "full",
},
{ type = "divider",
},
{ type = "description",
text = "The Landing trackers can be slighty inaccurate due to boss animation desyncs.\nWill try to improve them.",
},
{ type = "divider",
},
{ type = "checkbox",
name = "Lokkestiiz HP Tracker",
tooltip = "Displays a notification to let you know when Lokkestiiz is about to fly.",
default = true,
getFunc = function() return sV.Enable.hpLokke end,
setFunc = function(newValue)
sV.Enable.hpLokke = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Lokkestiiz Landing Tracker",
tooltip = "Displays a notification to let you know when Lokkestiiz is about to land.",
default = true,
getFunc = function() return sV.Enable.landingLokke end,
setFunc = function(newValue)
sV.Enable.landingLokke = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Yolnahkriin HP Tracker",
tooltip = "Displays a notification to let you know when Yolnahkriin is about to fly.",
default = true,
getFunc = function() return sV.Enable.hpYolna end,
setFunc = function(newValue)
sV.Enable.hpYolna = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Yolnahkriin Landing Tracker",
tooltip = "Displays a notification to let you know when Yolnahkriin is about to land.",
default = true,
getFunc = function() return sV.Enable.landingYolna end,
setFunc = function(newValue)
sV.Enable.landingYolna = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Nahviintaas HP Tracker",
tooltip = "Displays a notification to let you know when Nahviintaas is about to fly.",
default = true,
getFunc = function() return sV.Enable.hpNahvii end,
setFunc = function(newValue)
sV.Enable.hpNahvii = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Nahviintaas Landing Tracker",
tooltip = "Displays a notification to let you know when Nahviintaas is about to land.",
default = true,
getFunc = function() return sV.Enable.landingNahvii end,
setFunc = function(newValue)
sV.Enable.landingNahvii = newValue
end,
width = "half",
},
{ type = "divider",
},
{ type = "slider",
name = "% Before Flying to Show",
tooltip = "Choose how many % before boss can fly to make the display visible.",
getFunc = function() return sV.hpShowPercent end,
setFunc = function(newValue)
sV.hpShowPercent = newValue
end,
min = 2,
max = 10,
step = 1,
default = 5,
width = "half",
},
{ type = "slider",
name = "Seconds Before Landing to Show",
tooltip = "Set how many seconds before landing to make the display visible.",
getFunc = function() return sV.timeBeforeLanding end,
setFunc = function(newValue)
sV.timeBeforeLanding = newValue
end,
min = 2,
max = 10,
step = 1,
default = 5,
width = "half",
},
-- { type = "checkbox",
-- name = "Show HP% left until Flying",
-- tooltip = "On = display % left until flying.\nOff = display active % of boss HP.",
-- default = true,
-- getFunc = function() return sV.Enable.PercentToFly end,
-- setFunc = function(newValue)
-- sV.Enable.PercentToFly = newValue
-- end,
-- width = "half",
-- },
},
},
{ type = "submenu", name = "Lokkestiiz Notifications",
controls = {
{ type = "divider",
},
{ type = "checkbox",
name = "Ice Tomb",
tooltip = "Tracks the Ice Tombs spawn and remaining time left to enter.",
default = true,
getFunc = function() return sV.Enable.IceTomb end,
setFunc = function(newValue)
sV.Enable.IceTomb = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Laser",
tooltip = "Counts down the remaining time until Lokkestiiz´s beam attack.",
default = true,
getFunc = function() return sV.Enable.LaserLokke end,
setFunc = function(newValue)
sV.Enable.LaserLokke = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Glacial Fist",
tooltip = "Tracks frontal cone attack from Ice Atronarchs.",
default = true,
getFunc = function() return sV.Enable.GlacialFist end,
setFunc = function(newValue)
sV.Enable.GlacialFist = newValue
end,
width = "half",
},
},
},
{ type = "submenu", name = "Yolnahkriin Notifications",
controls = {
{ type = "divider",
},
{ type = "checkbox",
name = "Fire Atro Spawn",
tooltip = "Tracks the Fire Atro spawn.",
default = true,
getFunc = function() return sV.Enable.Atro end,
setFunc = function(newValue)
sV.Enable.Atro = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Next Flare",
tooltip = "Countdown until next Flare.",
default = true,
getFunc = function() return sV.Enable.NextFlare end,
setFunc = function(newValue)
sV.Enable.NextFlare = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Cataclysm",
tooltip = "Counts down the remaining time until Cataclysm ends.",
default = true,
getFunc = function() return sV.Enable.Cata end,
setFunc = function(newValue)
sV.Enable.Cata = newValue
end,
width = "half",
},
-- { type = "checkbox",
-- name = "Flame Atronarch Aggro",
-- tooltip = "Alerts you when you are the target of a Flame Atronarch's attacks.\n|cff0000Note:|r This alert will only activate on Veteran Hard Mode and is meant to alert dd's using Simmering Frenzy of incoming attacks.",
-- default = true,
-- getFunc = function() return sV.Enable.Flare end,
-- setFunc = function(newValue)
-- sV.Enable.Flare = newValue
-- end,
-- width = "half",
-- },
},
},
{ type = "submenu", name = "Nahviintaas Notifications",
controls = {
{ type = "divider",
},
{ type = "checkbox", name = "Sweeping Breath",
tooltip = "Alerts you about Sweeping Breath and its direction.",
default = true,
getFunc = function() return sV.Enable.SweepBreath end,
setFunc = function(newValue)
sV.Enable.SweepBreath = newValue
end,
width = "half",
},
{ type = "checkbox", name = "Thrash",
tooltip = "Alerts you about Nahviintaas's Thrash mechanic.",
default = true,
getFunc = function() return sV.Enable.Thrash end,
setFunc = function(newValue)
sV.Enable.Thrash = newValue
end,
width = "half",
},
{ type = "checkbox", name = "Soul Tear",
tooltip = "Alerts you about Nahviintaas's Soul Tear mechanic.",
default = true,
getFunc = function() return sV.Enable.SoulTear end,
setFunc = function(newValue)
sV.Enable.SoulTear = newValue
end,
width = "half",
},
{ type = "checkbox", name = "Next Meteor",
tooltip = "Will show you a countdown to the next Meteor once you reach the last stage of the fight.",
default = true,
getFunc = function() return sV.Enable.NextMeteor end,
setFunc = function(newValue)
sV.Enable.NextMeteor = newValue
end,
width = "half",
},
{ type = "checkbox", name = "Vigil Statue's Ground Slam",
tooltip = "Alerts you if you are the target of a Vigil Statue's ground attack.",
default = true,
getFunc = function() return sV.Enable.PowerfulSlam end,
setFunc = function(newValue)
sV.Enable.PowerfulSlam = newValue
end,
width = "half",
},
{ type = "checkbox", name = "Vigil Statue's Hail of Stones",
tooltip = "Alerts you if a Vigil Statue is channeling.",
default = true,
getFunc = function() return sV.Enable.HailOfStone end,
setFunc = function(newValue)
sV.Enable.HailOfStone = newValue
end,
width = "half",
},
{ type = "checkbox", name = "Vigil Statue's Stonefist",
tooltip = "Alerts you if you are the target of a Vigil Statue's Stonefist attack.",
default = true,
getFunc = function() return sV.Enable.Stonefist end,
setFunc = function(newValue)
sV.Enable.Stonefist = newValue
end,
width = "half",
},
{ type = "divider",
},
{ type = "description", text = "Display a message with directions to help Damage Dealers place meteors in seperate locations during execute on Hard Mode.\nThe directions are relative to when you are facing the boss and your back is facing towards the entrance.",
},
{ type = "checkbox", name = "Meteor Targets",
tooltip = "Will show you the names of the players who are targeted by Meteors in execute (will only show targets with the dd role).",
default = true,
getFunc = function() return sV.Enable.MeteorNames end,
setFunc = function(newValue)
sV.Enable.MeteorNames = newValue
end,
width = "half",
},
{ type = "checkbox", name = "Meteor Targets Self Only",
tooltip = "Names will only show if you are one of the targets.",
default = true,
getFunc = function() return sV.MeteorSelfOnly end,
setFunc = function(newValue)
sV.MeteorSelfOnly = newValue
end,
width = "half",
},
{ type = "divider",
},
{ type = "checkbox", name = "Fire Storm",
tooltip = "Tracks Nahviintaas's arena-sized AoE. Also notifies players in portal if you have the Data Sending option enabled.",
default = true,
getFunc = function() return sV.Enable.Storm end,
setFunc = function(newValue)
sV.Enable.Storm = newValue
end,
width = "half",
},
{ type = "checkbox", name = "Enable Data Sending",
tooltip = "Enable map pings to tell the portal group when Fire Storm is coming.",
default = false,
getFunc = function() return sV.Enable.Sending end,
setFunc = function(newValue)
sV.Enable.Sending = newValue
end,
warning = "|cff0000Note:|r Only one person who is not in the portal is needed.\nMake sure to have someone enabling it.",
disabled = function()
if LibGPS3 and LibMapPing then
return false --not disabled
else
return true --disabled
end
end,
width = "half",
},
{ type = "header", name = "Portal Notifications",
},
{ type = "description", text = "All mechanics involving the portal during Nahviintaas bossfight.",
},
{ type = "divider",
},
{ type = "checkbox",
name = "Portal Active",
tooltip = "Tracks the Portal spawn aswell as the remaining time until it expires.",
default = true,
getFunc = function() return sV.Enable.Portal end,
setFunc = function(newValue)
sV.Enable.Portal = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Portal Bash Countdown",
tooltip = "Counts down the remaining time to Interrupt the Eternal Servant.",
default = true,
getFunc = function() return sV.Enable.Interrupt end,
setFunc = function(newValue)
sV.Enable.Interrupt = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Pins Tracking",
tooltip = "Counts down the remaining time until the next Pins.",
default = true,
getFunc = function() return sV.Enable.Pins end,
setFunc = function(newValue)
sV.Enable.Pins = newValue
end,
width = "half",
},
{ type = "checkbox",
name = "Negate Field",
tooltip = "Alerts you when you are targeted by the Negate Field.",
default = true,
getFunc = function() return sV.Enable.Negate end,
setFunc = function(newValue)
sV.Enable.Negate = newValue
end,
width = "half",
},
{ type = "divider",
},
{ type = "checkbox",
name = "Wipe Countdown",
tooltip = "Tracks the remaining time you have to kill the Eternal Servant.",
default = true,
getFunc = function() return sV.Enable.Wipe end,
setFunc = function(newValue)
sV.Enable.Wipe = newValue
end,
width = "half",
},
{ type = "slider",
name = "Start of Countdown",
tooltip = "Seconds left until portal wipe before displaying countdown.",
getFunc = function() return sV.wipeCallLater end,
setFunc = function(newValue)
sV.wipeCallLater = newValue
end,
min = 10,
max = 90,
step = 1,
default = 90,
width = "half",
},
},
},
}
LAM:RegisterOptionControls("HowToSunspire_Settings", optionsData)
end